Python - Input String and Display in Lower and Upper Case Letters
I have given here python program to input a string and display it in lower case and upper case letters.
This code is tested with Python version 2.6
temp = raw_input("Enter a string:")
print "The given string in lowercase letters: ", temp.lower()
print "The given string in uppercase letters: ", temp.upper()
#sample output
#Enter a string: Software & Finance
#The given string in lowercase letters: software & finance
#The given string in uppercase letters: SOFWTARE & FINANCE
|
|