Why the second if statemnet is true, the first if statemnet is also true....? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why the second if statemnet is true, the first if statemnet is also true....?

if 1 + 1 == 2: if 2 * 2 == 8: print("if") else: print("else")

15th Dec 2016, 9:58 AM
Mr.Aavez Shaikh
Mr.Aavez Shaikh - avatar
1 ответ
+ 1
you should use indentation, python is all about indentation.
15th Dec 2016, 10:05 AM
Uran Kajtazaj
Uran Kajtazaj - avatar