Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started