- Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathq9.py
22 lines (15 loc) · 438 Bytes
/
q9.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Write a program that accepts sequence of lines as input and prints the lines after making all characters in the sentence capitalized.
# Suppose the following input is supplied to the program:
# Hello world
# Practice makes perfect
# Then, the output should be:
# HELLO WORLD
# PRACTICE MAKES PERFECT
lst= []
whileTrue:
x=input()
iflen(x)==0:
break;
lst.append(x)
forlineinlst:
print(line.upper())