Basic Python Help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Basic Python Help

blox = 10 def bab(): for bob in blox: print(bob) blox = blox + 1 if bob >= 50: print("yes") else: print() print(bob + 1) if 10 == 10: bab() im a new python scripter but cant really find what is wrong besides the ā€œInt is not callableā€ error.

4th Feb 2021, 7:56 PM
Ok6c
Ok6c - avatar
1 Answer
0
for loop expect something iterable as in parameter. blox isn't as integer are not iterable...
4th Feb 2021, 8:01 PM
visph
visph - avatar