Hi guys what does't mean if and else ?? Give me an expl pleassse | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi guys what does't mean if and else ?? Give me an expl pleassse

20th Apr 2019, 3:25 PM
Chaima
3 Answers
0
Thanks ... 😉
20th Apr 2019, 3:36 PM
Chaima
+ 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.
20th Apr 2019, 3:34 PM
Anna
Anna - avatar
+ 1
Anna you didn't have to give that explanation, they're here to learn, so just refer them to the courses
20th Apr 2019, 4:56 PM
Dlite
Dlite - avatar