Skip to content
项目

关于

专为 GenAI 学习者设计的快速、结构化 Python 基础。该仓库提供一套完整的 6 天学习路径,涵盖基本 Python 概念,并侧重于生成式 AI 工作中的实际应用。

学习与教育

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
-3
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Python-for-GenAI — 6-Day Beginner Roadmap

Description

A fast, structured Python foundation designed specifically for GenAI learners. This repository provides a comprehensive 6-day learning path that covers essential Python concepts with a focus on practical applications for Generative AI work.

Whether you're new to programming or looking to strengthen your Python skills for AI development, this roadmap will guide you through the fundamentals step by step.


How to Use This Repository

Learning Path

  1. Go day by day - Follow the sequence from Day 1 to Day 6
  2. File order matters - Each day has three files in this order:
    • 01_notes.md → Start here to learn the concepts
    • 02_student_task.md → Practice with hands-on tasks
    • 03_mini_project.md → Build a complete project
  3. Practice examples - Run and modify the code examples as you learn
  4. Complete assignments - Work through all tasks before moving to the next day

Getting Started

  1. Clone or download this repository
  2. Ensure Python is installed on your system
  3. Start with Day01 - Python Building Blocks/01_notes.md
  4. Create Python files to practice the examples
  5. Complete the student tasks and mini projects

Technical Requirements

Python Version

  • Python 3.7 or higher recommended
  • Check your version: python --version or python3 --version

Required Libraries

Most libraries are built-in, but you'll need to install:

pip install requests

The following are built-in (no installation needed):

  • json - For JSON file operations
  • csv - For CSV file operations
  • math, random, datetime - Standard library modules

How to Run Programs

  1. Create a Python file: filename.py
  2. Run from terminal:
    python filename.py
    
    or
    python3 filename.py
    
  3. Run examples directly: Copy code from notes into a file and execute

Roadmap Overview

Day Topic Key Concepts
1 Python Building Blocks Variables, Data types, f-strings, User input, Truthy & Falsy values, Operators
2 Collections & Conditions if-else, List basics, Common list methods, Dictionaries, for loop
3 Loops & Functions while loop, List comprehensions, Functions (def, parameters, return), Lambda functions
4 Working With Modules & Errors Python modules (import, from-import), Exception handling (try/except/finally), HTTP Requests (GET & POST)
5 File Handling Essentials Working with .txt, Working with .json, Working with .csv
6 OOP Fundamentals for GenAI What is a class?, Objects, attributes, and methods, Constructors (__init__), GenAI-friendly examples

What You'll Build

Each day includes a mini project to reinforce learning:

  • Day 1: User Info Collector CLI
  • Day 2: Grocery Price Tracker
  • Day 3: Quiz Creator
  • Day 4: API Data Fetcher
  • Day 5: CSV-based Student Score Manager
  • Day 6: PromptTemplate Class System

Repository Structure

python-for-genai/
│
├── Day01 - Python Building Blocks/
│   ├── 01_notes.md
│   ├── 02_student_task.md
│   └── 03_mini_project.md
│
├── Day02 - Collections & Conditions/
│   ├── 01_notes.md
│   ├── 02_student_task.md
│   └── 03_mini_project.md
│
├── Day03 - Loops & Functions/
│   ├── 01_notes.md
│   ├── 02_student_task.md
│   └── 03_mini_project.md
│
├── Day04 - Working With Modules & Errors/
│   ├── 01_notes.md
│   ├── 02_student_task.md
│   └── 03_mini_project.md
│
├── Day05 - File Handling Essentials/
│   ├── 01_notes.md
│   ├── 02_student_task.md
│   └── 03_mini_project.md
│
├── Day06 - OOP Fundamentals for GenAI/
│   ├── 01_notes.md
│   ├── 02_student_task.md
│   └── 03_mini_project.md
│
└── README.md

Learning Tips

  1. Don't rush - Take your time with each concept
  2. Code along - Type out examples instead of just reading
  3. Experiment - Modify examples to see what happens
  4. Practice daily - Consistency beats intensity
  5. Ask questions - If something doesn't make sense, review the notes
  6. Complete projects - The mini projects are crucial for understanding

Prerequisites

  • Basic computer literacy
  • Ability to install software
  • Text editor or IDE (VS Code, PyCharm, or any text editor)
  • Internet connection (for Day 4 API examples)

No prior programming experience required!


Additional Resources

While this repository is self-contained, you may find these helpful:


Credits

Created by Chandra Sekhar.

Connect with me on LinkedIn.


License

This repository is provided for educational purposes. Feel free to use, modify, and share.


Ready to start your Python journey? Begin with Day 1! 🚀

探索相关项目

加载中…