top of page
Programs based on Tuples 

1. WAP to create a tuple of numbers that are even. The user should enter the limit(n).

    

    Solution

2. WAP to search for a given element in a Tuple. Also display its position.(Do not use Tuple functIons)

   

Solution

3. WAP to create a tuple using a loop.

   

     Solution

4. WAP to find out the number of occurrences of a given element(input by the user) in a tuple. (Do not use Tuple functIons)

    Solution

5. WAP to find the sum of elements stored in a Tuple without using built in Tuple functions.

   Solution

6. WAP to create a tuple of numbers between 1 and n(input by the user) that are divisible by 3 or 7 . Also find the value of the minimum and maximum element in it. 

  Solution

7. WAP to input a Tuple and find the mean of its elements.

   Solution

   

    

bottom of page