title: Error message: argument of type 'type' is not iterable
body: <p>I am just starting with Python and I have a short question. </p>
  
  <pre><code>import sys
  
  # Function creates a list [1,3,5..99]
  def createlist():
      list = []
      for i in range(1, 100, 2):
          list.append(i)
      return(list)
  
  # Function asks for an odd integer between 1..100
  def numberinsert():
      n = int(input("Please enter an odd number between 1 and 100: "))
      if n in list:
          return(n)
      else:
          sys.exit("Number does not match requirements!")
  
  def main():
      createlist()
      numberinsert()
  </code></pre>
  
  <p>It gives me this: <code>TypeError: argument of type 'type' is not iterable</code></p>
  
  <p>What am I doing wrong?</p>