Jul-23-2023, 02:06 PM
Hello,
I ha been following an example on lesson letter by letter of the code but els comes out as invalid systax.
here is the code.
100
since there is a condition of Except NameError:
the code must proceed to print (x)
I ha been following an example on lesson letter by letter of the code but els comes out as invalid systax.
here is the code.
#multi Exception a=10 b=2 i=3 x=5 try: c=a/x except NameError: c=a/i print("Variable is not yet created") else: x=100 print(x)This is suppose to print
100
since there is a condition of Except NameError:
the code must proceed to print (x)