try:
x=1
y=1
if x==1:
raise
result=x/y
print(result)
except ZeroDivisionError:
print("second variable cannot be zero")
except TypeError:
print("one of the operand data type is wrong")
print(msg)
# TypeError ZeroDivisionError:
except :
print('exception error')
else:
print("no error")
# else will only run when there is no error
finally:
print("this line is gonna run no matter what bruh")
#it is used for file closing