0
Hi guys what does't mean if and else ?? Give me an expl pleassse
3 Réponses
0
Thanks ... 😉
+ 3
I'm sure that is explained in detail in the tutorial. If a condition is true, the following statement or block is executed. Else (if the condition is not true), the else statement or block is executed.
if condition == True:
do_this()
else:
do_that()
This is python. In other languages, you need (), {} and ; The syntax is explained in the tutorial.
+ 1
Anna you didn't have to give that explanation, they're here to learn, so just refer them to the courses