title: FileNotFoundError while opening file in python
body: <p>I've searched and cannot find how to fix this. I am watching a tutorial and I created a file called "testfile" in notepad. It's a .txt file. When I type </p>
  
  <pre><code>file1 = open("testfile.txt", "r") 
  </code></pre>
  
  <p>in to python I get this error: </p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'testfile.txt'
  </code></pre>
  
  <p>What can I do to fix this? Thanks!</p>