Python Forum
[split] Python for Everybody 5.2 assignment
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Python for Everybody 5.2 assignment
#1
I need help too
What do I type in the box when it appears?
[Image: 491467811.png]
Reply
#2
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.
Reply
#3
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
Reply
#4
(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]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] University Assignment Help needed Nomathemba 3 3,389 Nov-10-2023, 05:50 AM
Last Post: ezrahidaya
  Python for Everybody 5.2 assignment baba04201 20 172,670 Jul-25-2023, 04:15 PM
Last Post: MicaelSchutz
  [split] assignment help Shobana 2 1,267 Nov-11-2022, 12:10 PM
Last Post: Larz60+
  Python for Everybody 3.1 assignment ramadan2099 18 45,171 Jan-23-2021, 06:27 AM
Last Post: KonohaHokage
  Coursera python for everybody 5.2 assignment SteppentigerV2 11 12,710 Oct-22-2020, 11:57 AM
Last Post: Larz60+
  Python Assignment 3 - Applied Data Science - 2.3 eyavuz21 8 4,885 Jun-06-2020, 08:59 AM
Last Post: eyavuz21
  Python Password Saver Assignment sshellzr21 2 6,104 May-02-2020, 01:34 AM
Last Post: sshellzr21
  Python for Everybody 3.3 assignment ramadan2099 7 31,643 Apr-08-2020, 06:49 AM
Last Post: DeaD_EyE
  Python for everyone course assignment 5.2 ofekx 3 8,482 Dec-23-2019, 08:41 PM
Last Post: nilamo
  [split] Python for Everybody 5.2 assignment jonchanzw 4 8,403 Oct-22-2019, 08:08 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020