+ 1
if Statements
Hello, In an If Statement, if the first condition is not true, so all other conditions that follow it are not. Isn't it?
4 Respostas
+ 2
for instance:
sub=6
if sub<5: (1)
print("smaller than 5")
if sub>3: (2)
print("bigger than 3")
in here, since the first condition isn't verified, the second one won't be checked.
+ 2
just a doubt.. thanks for taking it off.