title: 'int' object is not iterable in python 3
body: <p>got a error while compiling the code.</p>
  
  <p>I tried to find smallest and largest value from user's input by storing the input in lists. After 'int' object not iterate problem, couldn't proceed further </p>
  
  <pre><code>largest=0
  smallest=0
  num=[]
  while True:
      num = int(input("Please enter a number: "))
  
      for i in num:
          if i&gt;largest:
              largest=i
      for j in num:
          if j&lt;smallest:
              smallest=j
      if num==12:
          break             
  print(largest)
  print(smallest)
  </code></pre>