We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18fa475 commit bd81ef6Copy full SHA for bd81ef6
q9.py
@@ -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