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).
2. WAP to search for a given element in a Tuple. Also display its position.(Do not use Tuple functIons)
3. WAP to create a tuple using a loop.
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)
5. WAP to find the sum of elements stored in a Tuple without using built in Tuple functions.
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.
7. WAP to input a Tuple and find the mean of its elements.
bottom of page