When to use tuple or dictionary in Python. Give some examples of programming situations mentioning their usefulness.
Answers
Answered by
0
Explanation:
Tuples are used to store multiple items in a single variable.
Tuple is one of 4 built-in data types in Python used to store collections of data, the other 3 are List, Set, and Dictionary, all with different qualities and usage.
A tuple is a collection which is ordered and unchangeable.
Tuples are written with round brackets.
PLEASE MARK ME AS BRILLIANT AND GIVE ME STARS
Similar questions
Math,
1 month ago
Social Sciences,
3 months ago
Math,
3 months ago
English,
9 months ago
Social Sciences,
9 months ago