If Statement in Python in Python

🟢 Beginner

📖 Definition

An if statement in Python relies on indentation blocks to define scope.

âš¡ Code Example

age = 20
if age >= 18:
    print("Adult")

🧭 Navigation

← Module Hub | Module Index | 02. If-Else Statement in Python →