[Solved] TypeError: ‘int’ object is not iterable (new to python) [closed]


The error is pretty clear : pick is an int. The syntax for i in *someInt* is not a valid syntax in python.

Because you wrote this line :

   pick = int(raw_input('Pick a number between 1 and 64: '))

Then, you use .... in pick .

Just imagine pick value is 5 .

What should for i in 5 or if i in 5 actually do ?

solved TypeError: ‘int’ object is not iterable (new to python) [closed]