Lecture 8 try,raise,except
#Raise is for debugging
try:
print('hello')
x=100
while x>-1:
if x==50:
raise
x=x-1
print(x)
except:
print("i stop the program")INFO
#Raise is for debugging
try:
print('hello')
x=100
while x>-1:
if x==50:
raise
x=x-1
print(x)
except:
print("i stop the program")