Title Section


**/Concept Title/

Python If-Else Statement**

/Page Description/ In Python, If-Else is ****a fundamental conditional statement used for decision-making in programming. If…Else statement allows to execution of specific blocks of code depending on the condition is True or False.


Theory Section


/Text with (h1,h2,h3&h4) , (code), (link), (qoute) with Images/ In strapi it is built similarly

Indentation

Python relies on indentation (whitespace at the beginning of a line) to define scope in the code. Other programming languages often use curly-brackets for this purpose.

a = 33
b = 200
if b > a:
print("b is greater than a") # you will get an error

Elif

The elif keyword is Python's way of saying "if the previous conditions were not true, then try this condition". In this example a is equal to b, so the first condition is not true, but the elif condition is true, so we print to screen that "a and b are equal".