1234567891011121314 |
- # lists
- print "\nlists"
- print max([1,2,3,4])
- print max([1,2],[2,1],[2,2],[2,2,3])
- # tuples
- print "\ntuples"
- print max((1,2,3,4))
- print max((1,2),(2,1),(2,2),(2,2,3))
- # dictionaries
- print "\ndictionaries"
- print max({1:2,3:4,5:6})
- print max({1:6,3:4,5:2})
|