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