Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 16, 2020 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/8e073538920e37de0fcaec5501636119 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/8e073538920e37de0fcaec5501636119 to your computer and use it in GitHub Desktop.
t=('red','blue','green')
print (max(t)) #Output: red
print (min(t)) #Output:blue
print (sum(t)) #Output:TypeError: unsupported operand type(s) for +: 'int' and 'str'
t1=(1,2,3,4,5)
print (max(t1)) #Output:5
print (min(t1))#Output: 1
print (sum(t1))#Output: 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment