Advertisement
Guest User

get a grip anon

a guest
Feb 26th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. low = 0
  2. high = 0
  3. userinput = int(input('Enter a number: '))
  4. while userinput != 0:
  5.     if userinput > high:
  6.         high = userinput
  7.     if userinput < low:
  8.         low = userinput
  9.     userinput = int(input('Enter a number: '))
  10.  
  11. print('Lowest:%s Highest:%s' % (low, high))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement