Computer Science, asked by vandanaparashar287, 2 months ago

A tuple is declared as T1 = (5,15,20,35)
What will be the output of print(sum(T1)+min(T1))?​

Answers

Answered by dreamrob
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 :

  1. List
  2. Tuple
  3. Set
  4. Dictionary

Some functions related to Tuple are :

  1. cmp(T1, T2)
  2. len(T)
  3. max(T)
  4. min(T)

Similar questions