A tuple is declared as T1 = (5,15,20,35)
What will be the output of print(sum(T1)+min(T1))?
Answers
Answered by
1
T1 = (5 , 15 , 20 , 35)
print(sum(T1) + min(T1))
Output :
sum(T1) = 5 + 15 + 20 + 35
sum(T1) = 75
min(T1) = 5
sum(T1) + min(T1) = 75 + 5
sum(T1) + min(T1) = 80
So, output is 80.
Collection data types :
- List
- Tuple
- Set
- Dictionary
Some functions related to Tuple are :
- cmp(T1, T2)
- len(T)
- max(T)
- min(T)
Similar questions
Social Sciences,
2 months ago
Math,
2 months ago
Computer Science,
2 months ago
English,
5 months ago
Biology,
11 months ago
English,
11 months ago
Hindi,
11 months ago