from sys import argv script, filenames = argv txt = open(filename) print(f"Here's your life {filename}:") print(txt.read()) print("Type the filename again:") file_open = input(">") txt_again = open(file_again) print(txt_again.read())
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter