Computer Science, asked by kitty33orion, 3 days ago

explain the role of
for loops and dictionaries

in python 3 programming

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀​

Answers

Answered by Aryansingh001
2

Answer:

LOOPS

             In the context of most data science work, Python for loops are used to loop through an iterable object (like a list, tuple, set, etc.) and perform the same action for each entry. For example, a for loop would allow us to iterate through a list, performing the same action on each item in the list.

Dictionaries

               Dictionary in Python is an unordered collection of data values, used to store data values like a map, which, unlike other Data Types that hold only a single value as an element, Dictionary holds key:value pair. ...

:- Note – Keys in a dictionary don't allow Polymorphism.

Explanation:

Similar questions