In Python:
'if' condition do thing 1
then what 'else' do
Answers
Answered by
2
Answer:
else will execute the statements under the else clause if the "if" condition is not true.
Explanation:
ex-
a = 9
if a > 10: # this isn't executed becuase a isn't greater than 10
print("a is greater than 10")
else: # this is executed becuase the if is not true
print("a isn't greater than 10")
Similar questions
Physics,
2 months ago
Social Sciences,
2 months ago
English,
4 months ago
Math,
10 months ago
Math,
10 months ago