Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> bulan = {'jan': 32, 'feb': 43, 'mar': 21}
- >>> tmp = max(bulan['jan'], bulan['feb'], bulan['mar'])
- >>> tmp
- 43
- >>> for i in bulan:
- ... print i
- ...
- jan
- mar
- feb
- >>> for i in bulan:
- ... print bulan[i]
- ...
- 32
- 21
- 43
- >>> for i in bulan:
- ... if tmp == bulan[i]:
- ... print i
- ...
- feb
Advertisement
Add Comment
Please, Sign In to add comment