explain the role of
for loops and dictionaries
in python 3 programming
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Answers
Answered by
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
Math,
1 day ago
Physics,
1 day ago
Computer Science,
1 day ago
Economy,
3 days ago
Math,
8 months ago