Q. Write a program that prompt the user for a file name and then read and prints the contents of the requested file in the upper case.

 

Answer = 

 



file = open ( input("Enter the file name :-")+".txt","r+")
text = file.readlines()
for i in text:
    for j in (i):
        print (j.upper(), end="")
file.close()

 

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post