Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # #!/usr/bin/python
- #
- # By dvdjaco
- # Exercise 8.6
- #
- numlist = list()
- while ( True ) :
- inp = raw_input('Enter a number: ')
- if inp == 'done' : break
- value = float(inp)
- numlist.append(value)
- print "Maximum:", max(numlist)
- print "Minimum:", min(numlist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement