English

What is a Pair? Give an example.

Advertisements
Advertisements

Question

What is a Pair? Give an example.

Short/Brief Note
Advertisements

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?
Chapter 2: Data Abstraction - Evaluation [Page 19]
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×