Search
 
SCRIPT & CODE EXAMPLE
 

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.
Comment

PREVIOUS NEXT
Code Example
Python :: check if string is empty python 
Python :: clahe opencv 
Python :: pandas column by index 
Python :: venv python 
Python :: int object is not subscriptable in python 
Python :: make linked list in python 
Python :: python simple input popup 
Python :: OS Error: Connection refused, errno = 111, address = 127.0.0.1, port = 43350 
Python :: print index of tuple python 
Python :: figsize param in pandas plot 
Python :: how to make a pause in python 
Python :: read page source from text file python 
Python :: how to combine two arrays in python 
Python :: python run all tests 
Python :: python glob all files in directory recursively 
Python :: pyserial example code 
Python :: are tuples mutable 
Python :: multipart/form data multipart encoder python 
Python :: where are python libraries installed in windows 
Python :: numpy get variance of array 
Python :: python turn off printing 
Python :: npr python 
Python :: instabot python 
Python :: remove character from string by index in python 
Python :: python delete key from dictionary 
Python :: randomforestregressor in sklearn 
Python :: pyhton mahalanobis distance 
Python :: pandas count the number of unique values in a column 
Python :: fillna with mode pandas 
Python :: rnadom number python 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =