Jan-05-2019, 12:12 AM
Jan-05-2019, 12:16 AM
Split from https://python-forum.io/Thread-Python-fo...assignment
As to your question - I imagine it's happening because of your input() call (which we can't see, but I suspect is there - always provide your code!). The question description says what to put.
As to your question - I imagine it's happening because of your input() call (which we can't see, but I suspect is there - always provide your code!). The question description says what to put.
Jan-05-2019, 12:54 PM
largest = None smallest = None while True: try: num = raw_input("Enter a number: ") if num == "done" : break num = int(num) if largest is None or largest < num: largest = num elif smallest is None or smallest > num: smallest = num except ValueError: print("Invalid input") print("Maximum is", largest) print("Minimum is", smallest)this is code
Jul-15-2020, 04:54 PM
(Jan-05-2019, 12:12 AM)ramadan2099 Wrote: [ -> ]I need help too
What do I type in the box when it appears?
[Image: 491467811.png]