6) Python Tuple
6) Python Tuple
3. Write a Python program to create a tuple with numbers and print one item.
7. Write a Python program to get the 4th element and 4th element from last of a
tuple.
10. Write a Python program to check whether an element exists within a tuple.
17. Write a Python program to unzip a list of tuples into individual lists.
22. Write a Python program to remove an empty tuple(s) from a list of tuples.
Sample data: [(), (), ('',), ('a', 'b'), ('a', 'b', 'c'), ('d')]
Expected output: [('',), ('a', 'b'), ('a', 'b', 'c'), 'd']
24. Write a Python program to count the elements in a list until an element is a
tuple.