Python Practice › Tuple Programs › Program 22
Length of a tuple
Write a Python program to find the length of a tuple.
Input
("v", "i", "r", "a", "t")Output
5
Approach
len().
Solution
print(len(("v", "i", "r", "a", "t")))Output
5
Learn the concept
New to this topic? Read the lesson, then come back.