[split] Python for Everybody 5.2 assignment - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: [split] Python for Everybody 5.2 assignment (/thread-15117.html) |
[split] Python for Everybody 5.2 assignment - ramadan2099 - Jan-05-2019 I need help too What do I type in the box when it appears? [Image: 491467811.png] RE: [split] Python for Everybody 5.2 assignment - micseydel - Jan-05-2019 Split from https://python-forum.io/Thread-Python-for-Everybody-5-2-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. RE: [split] Python for Everybody 5.2 assignment - ramadan2099 - Jan-05-2019 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 RE: [split] Python for Everybody 5.2 assignment - Bipasha - Jul-15-2020 (Jan-05-2019, 12:12 AM)ramadan2099 Wrote: I need help too |