Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- low = 0
- high = 0
- userinput = int(input('Enter a number: '))
- while userinput != 0:
- if userinput > high:
- high = userinput
- if userinput < low:
- low = userinput
- userinput = int(input('Enter a number: '))
- print('Lowest:%s Highest:%s' % (low, high))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement