0% found this document useful (0 votes)
2 views1 page

Cheat Codes

nknkjnn

Uploaded by

rpscslab27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Cheat Codes

nknkjnn

Uploaded by

rpscslab27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

num=0

while num!=100:
try:
num1=eval(input ("enter dividend"))
num2=eval(input("enter divisor"))
num3=num1//num2
print("the quotient is= ", num3)
except NameError: print("Variable not present")
except ZeroDivisionError: print("Division by Zero not defined")
except: print("an error ha occured")
finally: print("done!!!!")

num=0
while num!=100:
try:
num1=eval (input ("Enter divindend"))
num2=eval (input ("Enter divisor "))
num3=num1//num2
print("The quotient is= ", num3)
except NameError: print("Variable not present")
except ZeroDivisionError: print("Divison by Zero not defined")
except: print(an error has occured")

num=0
while num!=100:
try:
num1=eval (input ("Enter dividend "))
num2=eval (input ("Enter divisior"))
num3=num1//num2
print("The quotient is= ", num3)
except ZeroDivisionError: print("Division by Zero not defined")
else:
print ("Execution is normal")
print ("Done!!!!")

You might also like