+ 2

What is the result of this code?

If not True print(''1") elif not (1+1==3): print("2") else: print("3")

26th Apr 2020, 7:46 AM
Rashid Hussein
Rashid Hussein - avatar
6 odpowiedzi
+ 1
AJ #infinity love thanks have changed 👊👊💯
26th Apr 2020, 8:10 AM
Rashid Hussein
Rashid Hussein - avatar
+ 3
Rashid hussein It's not related to html. So tag proper Language otherwise no-one can tell you. It's related to python so you can check in Code Playground. And also according to your problem there should be print("1") not print('1")
26th Apr 2020, 7:54 AM
A͢J
A͢J - avatar
+ 2
It's a Python code but it has some few syntax errors and valueError
28th Apr 2020, 12:05 PM
JUMA OTIENO RASHID
JUMA OTIENO RASHID - avatar
+ 2
Thanks
29th Apr 2020, 6:04 AM
Rashid Hussein
Rashid Hussein - avatar
0
After if not True there has to be a colon ie; if not True: Otherwise there will be a syntax error
26th Apr 2020, 11:31 AM
Valerie Irungu
0
3
31st May 2020, 1:10 PM
Muruthi B.M
Muruthi B.M - avatar