title: Type Error: "'types.GenericAlias' object is not iterable"
body: <p>I am working on a project is to convert text into numbers. (For example, &quot;hello world&quot; would be converted to &quot;8 5 12 12 15 27 23 15 18 12 4&quot;).</p>
  <p>In line 10 of my code, the for loop causes the following error message:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\gabri\PycharmProjects\padding\main.py&quot;, line 15, in &lt;module&gt;
      converter(plaintext)
    File &quot;C:\Users\gabri\PycharmProjects\padding\main.py&quot;, line 10, in converter
      for n in plaintext:
  TypeError: 'types.GenericAlias' object is not iterable
  
  Process finished with exit code 1
  </code></pre>
  <p>My code is as follows:</p>
  <pre><code>alphabet = (&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;d&quot;,&quot;e&quot;,&quot;f&quot;,&quot;g&quot;,&quot;h&quot;,&quot;i&quot;,&quot;j&quot;,&quot;k&quot;,&quot;l&quot;,&quot;m&quot;,'n',&quot;o&quot;,&quot;p&quot;,&quot;q&quot;,&quot;r&quot;,'s','t','u','v','w','x','y','z')
  
  
  def getplaintext():
      global plaintext
      plaintext = list[input(&quot;Enter plaintext:.....&quot;)]
      print(plaintext)
  
  def converter(plaintext):
      for n in plaintext:
          print(n)
  
  
  getplaintext()
  converter(plaintext)
  </code></pre>
  <p>Does anybody know what is causing this error?</p>