Advertisement
dvdjaco

8.6

Feb 18th, 2012
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. # #!/usr/bin/python
  2. #
  3. # By dvdjaco
  4. # Exercise 8.6
  5. #
  6.  
  7. numlist = list()
  8. while ( True ) :
  9.     inp = raw_input('Enter a number: ')
  10.     if inp == 'done' : break
  11.     value = float(inp)
  12.     numlist.append(value)
  13. print "Maximum:", max(numlist)
  14. print "Minimum:", min(numlist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement