Determine the output

What will be the output of the given code snippet?

try : 
    x = 5
    if x < 6 :
        y = x/(x-3)
    print ("My", y)
    print ("Why",c)
    
except(ZeroDivisionError, NameError):
    print ("Change the world ")
Options
  1. Syntax Error
  2. My 2.5

Change the world

3.My 2.5

4.Change the world

Related Posts

Close Bitnami banner
Bitnami