Answers for "Explain what is For-in loop and what is Dictionaries? Provide example with a code snippet, when you use for-in to iterate over items in a dictionary."

24

python loop through dictionary

dictionary = {52:"E",126:"A",134:"B",188:"C",189:"D"}
for key, value in dictionary.items():
	print(key)
	print(value)
Posted by: Guest on July-02-2020

Code answers related to "Explain what is For-in loop and what is Dictionaries? Provide example with a code snippet, when you use for-in to iterate over items in a dictionary."

Python Answers by Framework

Browse Popular Code Answers by Language