Computer Science, asked by Anonymous, 4 months ago

In Python:
'if' condition do thing 1
then what 'else' do​

Answers

Answered by Ichiro77
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