title: (Python) TypeError: Required argument 'flags' (pos 2) not found
body: <p>I've seen many questions like this but people have always given the solution and not what was wrong. </p>
  
  <p>I have this piece of code and it gives me the error: "TypeError: Required argument 'flags' (pos 2) not found", and I don't know what the error is.</p>
  
  <pre><code>from os import *
  from time import *
  
  var_1 = open("{}/Dekstop/Test_file.txt".format(environ["USERPROFILE"],"a"))
  var_2 = "Test"
  
  if var_1.find(var_2):
     print("yay")
  else:
     print("noo")
  sleep(5)
  </code></pre>
  
  <p>I would appreciate help.</p>