Wednesday, January 5, 2022

try except blocks checking

 try :

    print("try 1")

except:

    print("except1")


try :

    print("try 2")

except:

    print("except2")

    


try :

    print("try 3")

except:

    print("except3")


try :

    print("try 4")

except:

    print("except4")


output:

     try 1

try 2

try 3

try 4

No comments:

Post a Comment

python class topic video