What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-20 12:12:03
python ask for real values until negative value diplay highest and lowest
print "Enter numbers, stops when negative value is entered:" nums = [] while True: # infinite loop try: n = int(raw_input("Enter a number: ")) # raw_input returns a string, so convert to an integer except ValueError: n... Add solution