Question: Write a python program to allow the user to enter a string. Use the input ( ) function to ask users to enter their string.

Write a python program to allow the user to enter a string. Use the input() function to ask users to enter their string. Then Print the user-entered string using the print() function. Next, check (using isX string methods like islower(), isupper() etc., that return a Boolean value to describe the nature of the string.)
i. if the string consists only of letters and is not blank.
ii. if the string consists only of letters and numbers and is not blank.
iii. the string consists only of numeric characters and is not blank.
iv. if the string consists only of spaces, tabs, and newlines and is not blank.
v. if the string consists only of words that begin with an uppercase letter followed by only lowercase letters.

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 Finance Questions!