Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

How can entrepreneurial ventures avoid legal disputes?

Answered: 1 week ago

Question

What are the classifications of Bank?

Answered: 1 week ago

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago