Python Programming Fundamentals: Core
Concepts for Beginners
1. Introduction to Python
Python is a high-level, interpreted programming language known for its clear syntax and
dynamic typing. Unlike languages that use curly braces { }, Python relies strictly on
indentation (whitespace) to define code blocks, making it highly readable and clean for
modern software structure.
2. Variables and Built-in Data Types
In Python, variables act as storage containers for data values. You do not need to
declare a variable's type explicitly before using it.
Integers (int): Whole numbers without decimals. (e.g., age = 22)
Floats (float): Numbers containing decimal points. (e.g., gpa = 3.8)
Strings (str): Text elements enclosed in single or double quotes. (e.g., course =
"BSCS")
Booleans (bool): True or False evaluation states. (e.g., is_passed = True)
3. Collection Data Structures
Python provides built-in sequential structures to manage data groupings effectively:
Data Structure Syntax Mutability (Can be
modified?)
Key Feature
List [1, 2, 3] Mutable (Yes) Ordered sequence
that allows
duplicates.
Tuple (1, 2, 3) Immutable (No) Faster
performance,
protected data.
Dictionary {"key": "value"} Mutable (Yes) Unordered key-
value mapping
structure.
4. Control Flow Statements
To add logical decision-making pathways and repetitions to a program, we use
conditional branches and structural loops: