t417.py 256 B

1234567891011121314
  1. # lists
  2. print "\nlists"
  3. print max([1,2,3,4])
  4. print max([1,2],[2,1],[2,2],[2,2,3])
  5. # tuples
  6. print "\ntuples"
  7. print max((1,2,3,4))
  8. print max((1,2),(2,1),(2,2),(2,2,3))
  9. # dictionaries
  10. print "\ndictionaries"
  11. print max({1:2,3:4,5:6})
  12. print max({1:6,3:4,5:2})