Question: Write a Python program that reads continues to read a sequence of lines from the user. If the user prints enter only, the program stops
Write a Python program that reads continues to read a sequence of lines from the user. If the user prints enter only, the program stops reading further lines. For each line that is read, the program should print the line with the first letter capitalized, as well as any letter after the full stop. All other letters should be lower case. Numbers that show up at the beginning of the word stay the same. Punctuations stay the same.
For example, if the input is: HELLO this Is a Sample text. only used as an example. The output should be: Hello this is a sample text. Only used as an example.
Step by Step Solution
There are 3 Steps involved in it
while True line inputEnter a line press Enter to stop if not lin... View full answer
Get step-by-step solutions from verified subject matter experts
