Skip to content

DeepikaA2004/ITERATE_OVER_DICTIONARIES_USING_FOR_LOOP_IN_PYTHON_PROGRAMMING

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ITERATE_OVER_DICTIONARIES_USING_FOR_LOOP_IN_PYTHON_PROGRAMMING

To write a Python program to iterate over dictionaries using for loop.

ALGORITHM

STEP 1:Get the number of elements to be in the dictionary.

STEP 2:Read the key and value pairs to be inserted in the dictionary.

STEP 3:For each key and value pair in the dictionary, repeat the iteration in the dictionary using dict_name.items().

STEP 4:Print the elements in the dictionary.

About

To write a Python program to iterate over dictionaries using for loop.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages