Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

TypeError: cannot unpack non-iterable int object

In my error, I was using a dictionary. This error is saying you need to have items like a tulp (number, number) where it can itterate over.

for key,value in DICTIONARY.items(): # I added .items() 
    # do stuff here

This is what helped for me.
Have a lovely day, remember to eat and get enough sleep.
 
PREVIOUS NEXT
Tagged: #unpack #int #object
ADD COMMENT
Topic
Name
3+9 =