filename = "text_files\\upperString.txt"
string = input("Enter your string:")
with open(filename,"w") as file_object:
for i in string :
if i != "!":
file_object.write(i.upper())
else :
break
filename = "text_files\\upperString.txt"
string = input("Enter your string:")
with open(filename,"w") as file_object:
for i in string :
if i != "!":
file_object.write(i.upper())
else :
break