-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue in break #1
Comments
Hi @sagunraul, Can you paste your code using Regards, |
Hi @sagunraul |
largest = None while True: if largest is not None and smallest is not None: |
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)
The text was updated successfully, but these errors were encountered: