You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Write a program that prompts for a file name, then opens that file and reads through the file, and print the contents of the file i#n upper case. Use the file words.txt to produce the output below.
# Use words.txt as the file name
#fname = raw_input("Enter file name: ")
#fh = open(fname)
#Note str.capitalize() only caps the first letter in the string. str.upper() caps the whole string.