MCA
PYTHON BASICS // MASTER THE CONCEPTS // WRITE BRUTAL CODE // PYTHON BASICS // MASTER THE CONCEPTS // WRITE BRUTAL CODE //
BACK TO SYLLABUS
EASY

PYTHON BASICS

Variables, data types, operators, and control flow

CONCEPTS

01Variables and data types (int, float, str, bool)
02Operators (arithmetic, comparison, logical)
03Input and output functions
04Conditional statements (if, elif, else)
05Loops (for, while)
06Type conversion and casting

SYNTAX_DEMO

Foundation code examples
name = "Alice"
age = 25
is_student = True

if age >= 18:
    print(f"{name} is an adult.")
else:
    print(f"{name} is a minor.")

for i in range(5):
    print(f"Count: {i}")