#Question
#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
##Hints:
#In case of input data being supplied to the question, it should be assumed to be a console input.
stopword=""
while True:
str=raw_input()
if str.strip()==stopword:
break
print str.upper()
#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
##Hints:
#In case of input data being supplied to the question, it should be assumed to be a console input.
stopword=""
while True:
str=raw_input()
if str.strip()==stopword:
break
print str.upper()
No comments:
Post a Comment