Python #7: How to convert user input to uppercase and/or lowercase

#Programmer: Akinwale Owi
#Company: Dagba Computers
#Program Purpose:Convert user input to uppercase and lowercase

#Start of Program

#prompting user for input
normalInput=input(‘please enter a string’)

#printing to test before conversion to uppercase
print(“User input before change = ” +normalInput)

#space
print(“”)

#converting to upperCase
print(“All uppercase = ” + normalInput.upper())

#space
print(“”)

#converting to lowercase
print(“All lowercase = ” + normalInput.lower())

#End of Program
————————————OUTPUT—————————–

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: