title: The system cannot find the file specified in [WinError 2]
body: <p>As in the title, I am getting this error, </p>
  
  <blockquote>
    <p>FileNotFoundError: [WinError 2] The system cannot find the file specified:</p>
  </blockquote>
  
  <p>I am newbie in coding then, I was coding as, was done in a website called udacity, following them I wrote this code,</p>
  
  <pre><code>    import os
  def rename_files():
      files = os.listdir(r"C:\Users\WIN8\Desktop\oop\prank")
      #print(files)
      saved_path = os.getcwd()
      print("current working directory is" + saved_path)
      os.chdir(r"C:\Users\WIN8\Desktop\oop\prank")
      for file_temp in files:
          os.rename(
              file_temp,
              file_temp.translate(str.maketrans('', '', '0123456789')))
          os.chdir(saved_path)
  rename_files()
  </code></pre>
  
  <p>now the error i am getting is</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/WIN8/Desktop/Tumin/First_Program/secret message.py", line 13, in &lt;module&gt;
      rename_files()
    File "C:/Users/WIN8/Desktop/Tumin/First_Program/secret message.py", line 11, in rename_files
      file_temp.translate(str.maketrans('', '', '0123456789')))
  FileNotFoundError: [WinError 2] The system cannot find the file specified: '16los angeles.jpg' -&gt; 'los angeles.jpg'
  </code></pre>
  
  <p>Then i was also getting an error while typing <code>file_temp.translate(None, "0123456789")</code></p>
  
  <p>then it was saying something like, error2, one argument is needed two is declared or something. then i searched for the problem and in a thread found this code</p>
  
  <pre><code>(
              file_temp,
              file_temp.translate(str.maketrans('', '', '0123456789')))
  </code></pre>
  
  <p>but it didnt worked either.</p>
  
  <p>Thanks for helping.</p>