Why am I receiving an error that says output.txt doesn’t exist?


#1

Question

Why am I receiving an error that says output.txt doesn’t exist?

Answer

If your code is correct and you’re receiving an error about the existence of the ouput.txt file, please try the following:

  1. Please use Chrome, it’s typically the most reliable browser
  2. Reset the exercise with the spinning arrow icon next to the Run button and try again
  3. Clear your browser cache and press Ctrl + F5 (Windows) or Cmd + Shift + R (Mac)
  4. If nothing above worked, please check out our official troubleshooting guide

Learn Python - File Input / Output - The open() Function