Practice these Python tuple exercises to master the concept of immutable sequences.
इन Python tuple exercises को हल करके आप tuples की समझ को मजबूत कर सकते हैं।
numbers = (10, 20, 30, 40)
print(sum(numbers))
fruits = ('apple', 'banana', 'apple', 'orange')
print(fruits.count('apple'))
fruits = ('apple', 'banana', 'cherry')
print(fruits.index('banana'))
data = (1, 2, 3, 4, 5, 6)
print(data[-3:])
person = ("Aryan", 18, "India")
a, b, c = person
print(a)
print(b)
print(c)