Skip to content

Commit bd81ef6

Browse files
committed
19.py
1 parent 18fa475 commit bd81ef6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

q9.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Write a program that accepts sequence of lines as input and prints the lines
2+
# after making all characters in the sentence capitalized.
3+
# Suppose the following input is supplied to the program:
4+
# Hello world
5+
# Practice makes perfect
6+
# Then, the output should be:
7+
# HELLO WORLD
8+
# PRACTICE MAKES PERFECT
9+
10+
strLines= []
11+
12+
while True:
13+
userInput = input()
14+
if userInput == '':
15+
break
16+
else:
17+
strLines.append(userInput.upper() + '\n')
18+
print(''.join(strLines))

0 commit comments

Comments
 (0)