This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Take input from user | |
fname = input("Please inser file name:") | |
#try and except | |
try: | |
fhand = open(fname) | |
except: | |
print("File can not be found", fname) | |
quit() |