- 2
Why this code is showing syntax error. For (elif)
a=2 b=3 c=3 if a>b: print("₹") if b>c: print ("@") try: print ("yes") except: print("no") elif b>a: print("ok")
5 odpowiedzi
+ 5
When you type try if loop ends ,so the elif you are using is without previous if
0
I want to make a program which have similar format so I have to use try and except can you give me an alternate.
0
I want that try condition in b>a condition