Question: python program Exercise 1: Write a program that reads in a sentence and prints whether it - contains only letters. - contains only uppercase letters.

python program
python program Exercise 1: Write a program that reads in a sentence

Exercise 1: Write a program that reads in a sentence and prints whether it - contains only letters. - contains only uppercase letters. - contains only lowercase letters. - contains only digits. - contains only letters and digits. - starts with an uppercase letter. - ends with a period. Encer a word: COMP2101. The word 'Comp2101,' contains only upper letters atarts with an uppercase letter ends with a period. Enter a word: weleome to Comp2101 The vord 'Welcome to comp2101' starta with an uppercase letter. Enter a wordt Python. The word 'Python.' starts with an uppercase letter ends with a period. Enter a word: Comp2101 The word 'Comp2101' contains only letters and digita starts with an upperesse letter. Enter a word: 2101 The word ' 2101 ' contains only digita. Figure 1: Sample runs of Exercise 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!