Skip to content

Repository files navigation

🐍 Python-S1 β€” Developer Toolkit & Python Foundations

The first session of the DEPI R5 Professional Data Analyst track: a hands-on introduction to Python built around the mindset of a working data analyst. Every concept is anchored to a realistic scenario β€” cleaning messy transaction exports, auditing inventory, paginating API results β€” instead of toy examples.

πŸ““ Main notebook: Python-S1.ipynb


πŸ“– What's Inside

1. Print Function

  • print() basics: single, double, and triple quotes
  • Escape characters
  • Printing variables alongside text
  • πŸ§ͺ Challenge: Store Receipt Generator

2. Variables

  • Naming rules and reserved keywords
  • Inspecting Python's keyword list
  • πŸ§ͺ Challenge: Monthly Sales Performance Report

3. Input Function

  • Capturing dynamic user input
  • πŸ§ͺ Challenge: Dataset Profile Reporter

4. Python Data Types

  • Single-value types: int, float, str, bool
  • The empty type: None
  • Visual reference: Data Types Big Picture
  • πŸ“ Multiple-choice quick check
  • πŸ§ͺ Challenge: Raw Customer Transaction Cleaner

5. Strings & Numeric Types

  • String methods and cleaning techniques
  • Numeric operations, math, and random
  • πŸ§ͺ Challenge: Annual Revenue Analytics Engine

6. Controlling the Flow

  • Boolean expressions & comparison/logical operators
  • Visual reference: Python Flow Control
  • πŸ§ͺ Challenge: Transaction Record Validator

7. Conditional Branching

  • if / elif / else statements
  • Inline (ternary) if expressions
  • match-case (Python 3.10+)
  • πŸ§ͺ Challenges: Smart Order Processing Engine Β· Order Summary Badge Generator
  • πŸ† Capstone: ShopEasy Analytics β€” End-of-Day Transaction Audit Pipeline

8. Flow Control with Loops

  • Iterable objects: lists, tuples, strings, range()
  • for loops and while loops (condition-based & while True)
  • Loop control keywords: break, continue, pass
  • πŸ§ͺ Challenges:
    • Weekly Sales Trend Analyzer
    • Customer Feedback Word & Sentiment Scanner
    • Multi-Store Inventory Restock Auditor
    • API Pagination Simulator
  • πŸ† Final Capstone: ShopEasy Analytics β€” Daily Batch Settlement Engine

🎯 Learning Approach

Each concept follows the same rhythm:

Theory β†’ Live Demo β†’ πŸ§ͺ Real-World Challenge

Challenges are framed as tasks a junior data analyst at ShopEasy Analytics would actually face β€” cleaning raw exports, validating records, auditing stores, and building settlement pipelines β€” so the skills map directly onto real analyst work.


πŸ“‚ Repo Contents

FileDescription
Python-S1.ipynbMain lecture notebook (the source of truth)
Python-S1.txtPlain-text export of the lecture
Data Types Big Picture.pngVisual reference for Python data types
Python Flow control.pngVisual reference for flow control
python_data_types_dashboard.htmlSupplementary interactive reference

Part of the DEPI R5 Professional Data Analyst program.

About

Python for Data Analysis - Session 001

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages