Jun-29-2020, 02:17 AM
(This post was last modified: Jun-29-2020, 02:18 AM by pyzyx3qwerty.)
(Jun-29-2020, 02:02 AM)rafaelmoreno1 Wrote: hello cheakout man
numList = [] while True: try: num = input("Enter a number: ") if num == 'done': break n = int(num) if n != 'done': Value = n numList.append(Value) smallest = min(numList) largest = max(numList) except: print("Invalid input") continue print("Maximum is", largest) print("Minimum is", smallest)
That's very good, but please don't post unnecessary stuff on a thread when a person is asking a question. If you want to show this, post it probably in the board/bar section.
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs