Tag: Learn Python the Hard Way Exercise 17

LPTHW - Exercise 17: More Files

LPTHW - Exercise 17 I found this to be an awkward lesson to write out. It's not hard to do it but it's hard to write it out in a post like this because the script gets quite a lot of modification. Here's the first run through of the script: from sys import argv from os.path import exists script, from_file, to_file = argv print(f"Copying from {from_file} to {to_file}") # We could do the following on one line how?

Read more...