Q1. Tuples are _____________
Q2. Tuples can contain any type of elements.(T/F)
Q3. In tuples values are enclosed in ____________
Q4. Write the output of the following.
A = tuple("Python")
print(A)
Q5. len( ) function returns the number of elements in tuple.(T/F)
Q6. Write the output of the following:
A = list(tuple("Python"))
print(A)
Q7. Write the output of the following.
a=(23,34,65,20,5)
print(a[0]+a.index(5))
Q8. Which of the following is not a function of tuple?
Q9. Write the output of the following:
a=(23,34,65,20,5)
s=0
for i in a:
if i%2==0:
s=s+a[i]
print(s)
Q10. Write the output of the following:
a=(1, 2, 3, 2, 3, 4, 5)
print(min(a) + max(a) + a.count(2))