IF

The IF statement is used for conditional execution.

What you do in IF is that you write a condition (a specific case) so when the program encounter that conditional it will do the command or function you gave to him (in my example if Z is bigger than X, in that case the program will say to the user its wrong and will ask for another value). If the conditional is not met in that case it will just skip it and continue.

elif

ELIF is just the short cut way to say IF ELSE but it works exactly like IF so you shouldnt have a problem with it if you understand how to IF.

http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/ifstatements.html

CC BY 4.0 MASTERY 15 AND 17 by ilkaeng is licensed under a Creative Commons Attribution 4.0 International License.