under corrupted_wif put my private with the missing character and left "should be" empty like ' '
the file is on my desktop under folder called BTC1
Ok... then your "terminal" needs to be in the 'BTC1' directory, when you run the python command, otherwise it won't be able to find the script

On MacOSX, the path to your desktop folder BTC should be something like:
/Users/YOURUSERNAME/Desktop/BTC1
so if you use the command:
cd /Users/YOURUSERNAME/Desktop/BTC1
You should see the command prompt change and show you the BTC1 folder... then if you try to run the script again with:
python corrupt_wif.py
For this code as i have left #should be ' ' blank should i addin my corrupt key with a random letter at the end to add it up to 52 characters?
# Provide a WIF private key with a single missing character.
# Wrong Char
corrupted_wif = 'KykLRngWxXA8RkznbcQ5UzJbD2QfABiR9E6yVGvigHo2WrwBeGm'
# Should be: ''
# Missing Char
for candidate_wif in candidate_wifs(corrupted_wif):
print(candidate_wif)
It
should work.