Python is a high-level, interpreted programming language known for its clear syntax and dynamic typing. Because of its readable design, it has become the standard choice for beginners, web developers, data scientists, and DevOps administrators alike. In this guide, we'll cover variables, basic math operations, and simple logic blocks.

1. Declaring Variables & Types

In Python, you do not need to declare a variable's data type explicitly. The interpreter automatically infers it at runtime. Check out this code block:

# Assigning values to variables
age = 25              # Integer (int)
price = 19.99         # Floating-point number (float)
name = "Sasidhar"     # String (str)
is_active = True      # Boolean (bool)

# Displaying outputs
print("Name:", name)
print("Type of price:", type(price))
Note: Variable names in Python should be lowercase and separated by underscores (e.g. user_session_id) according to PEP 8 syntax guidelines.

2. Control Flow: Conditionals

Python uses indentation to define code scope instead of curly brackets {}. The standard indent size is 4 spaces.

score = 85

if score >= 90:
    print("Grade: A")
elif score >= 80:
    print("Grade: B")
else:
    print("Grade: C")

3. Loop Structures

We use loops to iterate over data collections. Python supports for loops and while loops:

# For loop through range
for index in range(3):
    print("Iteration index:", index)

# Iterating over a list
frameworks = ["Flask", "Django", "FastAPI"]
for fw in frameworks:
    print("Available Web Framework:", fw)