Data & Automation Lesson 1 of 4

Python Core Syntax & Data Structures

20:10 Python for Automation & Data Analysis

Understand how Python reads instructions. Master lists, dictionaries, conditionals, and loops with clear analogies.

Lesson notes

Python's syntax reads almost like plain English. This makes it the ideal first programming language for professionals who want to get things done without getting bogged down in syntax complexity.

What you'll learn

  • Variables, dynamic typing, and f-string formatting
  • Working with Lists and Dictionaries for structured data
  • Writing reusable functions with type hints

1. Clean Data Structures

Lists store ordered sequences (`[1, 2, 3]`), while Dictionaries store key-value pairs (`{'name': 'Alice', 'role': 'Engineer'}`). Combining them allows you to represent any dataset easily.

python
# Python Data Structure Demo
students = [
    {"name": "Sarah", "score": 94},
    {"name": "Ali", "score": 88},
    {"name": "Nida", "score": 92},
]

for student in students:
    if student["score"] >= 90:
        print(f"🌟 High Honors: {student['name']} ({student['score']}%)")

Clean, idiomatic Python loop with conditional filtering and f-string formatting.