Skip to content

issue in break  #1

Description

@sagunraul

I am getting issue in break in line no.5 please help me

largest = None
smallest = None
while True:
num = raw_input("Enter a number: ")
if num == "done" :break

try:
num = int(num)
except:
print ("Invalid input")
continue

if largest is None:
largest = num
elif largest < num:
largest = num

if smallest is None:
smallest = num
elif smallest > num:
smallest = num

print ("Maximum is", largest)
print ("Minimum is", smallest)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions