Bottom Page

Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Python for Everybody 5.2 assignment
#21
(Jun-29-2020, 02:02 AM)rafaelmoreno1 Wrote: hello cheakout man

Tongue
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)

İmage

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
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Python for Everybody 3.1 assignment ramadan2099 19 19,389 May-28-2020, 02:39 PM
Last Post: sanjaykumar11
  Python for Everybody 3.3 assignment ramadan2099 7 14,559 Apr-08-2020, 06:49 AM
Last Post: DeaD_EyE
  Python for everyone course assignment 5.2 ofekx 3 3,537 Dec-23-2019, 08:41 PM
Last Post: nilamo
  [split] Python for Everybody 5.2 assignment jonchanzw 4 3,610 Oct-22-2019, 08:08 AM
Last Post: perfringo
  Python Assignment 5.2 amos76823 3 9,078 Jan-17-2019, 07:34 AM
Last Post: perfringo
  [split] Python for Everybody 5.2 assignment ramadan2099 2 5,998 Jan-05-2019, 12:54 PM
Last Post: ramadan2099

Forum Jump:


Users browsing this thread: 2 Guest(s)