<filename>IT Workshop Practice Scripts/Exception Handling 3.py
try:
    fl = open("text.txt", 'r')
    # fl = open("text.txt", 'w')
    fl.write('Information written here')
except IOError:
    print("File is missing bro!")
else:
    print("Information is written inside the file bro!")

<filename>IT Workshop Practice Scripts/Exception Handling 3.py
try:
    fl = open("text.txt", 'r')
    # fl = open("text.txt", 'w')
    fl.write('Information written here')
except IOError:
    print("File is missing bro!")
else:
    print("Information is written inside the file bro!")

# fl = open("text.txt", 'w')