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 Respuesta
+ 1
you should use indentation, python is all about indentation.
15th Dec 2016, 10:05 AM
Uran Kajtazaj
Uran Kajtazaj - avatar