Advertisements
Advertisements
Question
What is a Pair? Give an example.
Short Note
Solution
- Pair is a compound structure that is made up of a list of Tuple
- The way of bundling two values together into one can be considered as a Pair.
- Example: Pr = [10,20]
a,b :=Pr
In the above example ‘a’ becomes 10,’ b’ becomes 20.
shaalaa.com
Introduction to Data Abstraction
Is there an error in this question or solution?