Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Looping through all values dictionary

fav_numbers = {'eric': 17, 'ever': 4}
for number in fav_numbers.values():
	print(str(number) + ' is a favorite')
 
PREVIOUS NEXT
Tagged: #python #Looping #values #dictionary
ADD COMMENT
Topic
Name
1+9 =