F-string returns file object name
F-string returns file object name Question: Trying to understand the output of the following code: 1 #!/usr/bin/python3 2 3 from os.path import exists 4 5 filename = input("What file do you want to erase?: ") 6 7 check = exists(filename) 8 9 if check == True: 10 target = open(filename, "r+") 11 print(f’Your {target} file …
Total answers: 1