title: Python Password Generatr with read and random module
body: <p>im kinda new to python and am programming a password generator. As of now, i think i am at a plateau where i need explanation.
  At the end, where i want to generate a password with the user input given above, i get a type error
  (TypeError: choice() takes 2 positional arguments but 3 were given)
  What am I missing, so that the random.choice function is not working</p>
  <pre><code>
  import random
  
  
  
  Uppercaseletters = open(&quot;Upper.txt&quot;).read()
  Lowercaseletters = open(&quot;Lower.txt&quot;).read()
  Numbers = open(&quot;Zahlen.txt&quot;).read()
  Symbols = open(&quot;Symbole.txt&quot;).read()
  
  
  Upperbool = True
  Lowerbool = True
  Numbersbool = True
  Symbolsbool = True
  
  whole = &quot;&quot;
  
  if Upperbool:
      whole += Uppercaseletters
  
  if Lowerbool:
      whole += Lowercaseletters
  
  if Numbersbool:
      whole += Numbers
  
  if Symbolsbool:
      whole += Symbols
  
  print(&quot;Hello and welcome to the simple password generator.&quot;)
  
  
  a = 1
  b = 1
  
  if b &lt;= 10:
      amount = int(input(&quot;How many passwords do you want to generate? &quot;))
  else:
      print(&quot;You are exceeding the limit of a maximum of 10 Passwords&quot;)
      
  # length auswählen lassen (maximal 20 Zeichen lang (Fehler prevention))
  if a &lt;= 20:     
      length = int(input(&quot;How long do you want your password to be? &quot;))
  else:
      print(&quot;That password will be too long, try a number below 20&quot;)
  
  for x in range(amount):
      password = &quot;&quot;.join(random.choice(whole, length))
      print(password)
  </code></pre>