0

Please, I need clarity on if and else statement.

Python

21st May 2019, 5:13 PM
Victor Hope
Victor Hope - avatar
7 Réponses
+ 3
Victor Hope, good, wish you happy coding and learning
21st May 2019, 5:29 PM
Maneren
Maneren - avatar
+ 7
Always welcome😊☺ Victor Hope
21st May 2019, 5:26 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 5
Doing the Python tutorial will help.
21st May 2019, 10:40 PM
Sonic
Sonic - avatar
+ 4
These two come under conditionals statements. They are used to make choices in the code . Similarly else statement is used to define a block which executes when none of the if has been exexuted . https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2277/
21st May 2019, 5:21 PM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 4
It works like: If some condition is true, then do something. Else (if condition is false), then do something else. Enough, or need more explanation?
21st May 2019, 5:24 PM
Maneren
Maneren - avatar
+ 2
Thanks Prince.
21st May 2019, 5:25 PM
Victor Hope
Victor Hope - avatar
+ 2
Understood. #Maneren
21st May 2019, 5:28 PM
Victor Hope
Victor Hope - avatar