Chapter 5: Conditional Execution
if Statement in Python
The if statement is used for decision making in Python.It allows a program to execute certain statements only when a condition is True.
Basic Syntax
if condition:
statement1
core-python.hashnode.dev11 min read