TristanSld

min() and max() functions

Jan 8th, 2014
47
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. #-*-coding:utf-8-*-
  3. lst=[45,55,102,5,3,54,89,21,68,74,6,945,874,225,120,35,58,68,112,66,48,
  4. 14,125,20,25,26,62,37,90,80,568,247,105,240,658]
  5. print min(lst),"\n" #dizelgedeki en küçük sayı
  6. print max(lst) #dizelgedeki en büyük sayı
RAW Paste Data