Welcome to the TS Python Intermediate Course! ...
- Course Overview
- ...
This course covers the following topics:
- Python Basics: Variables, data types, operators, basic syntax, and control flow.
- Data Structures: Lists, tuples, sets, and dictionaries.
- Functions and Modules: Writing reusable code and modular programming.
- Object-Oriented Programming (OOP): Classes, objects, inheritance, polymorphism, and encapsulation.
- Practical Applications: Real-world coding exercises and a final laboratory session on LangChain and large language models.
We will be using GitHub Codespaces, a cloud-based development environment, for this course. This allows you to code directly in your browser without setting up a local environment.
GitHub Codespaces provides an online development environment powered by Visual Studio Code. It includes a pre-configured environment with all dependencies installed, enabling you to focus on coding.
-
Fork this Repository:
- Go to the TS-Python-Intermediate-Course.
- Click on the Fork button at the top-right corner to create your copy of the repository.
-
Create a Codespace:
- Navigate to your forked repository.
- Click the Code button and select the Codespaces tab.
- Click Create Codespace on main.
-
Start Coding:
- Once the Codespace is ready, it will open in a VS Code-like environment in your browser.
- Use the terminal within Codespaces to run your Python scripts.
-
Sync Changes:
- All changes you make in Codespaces are saved to your forked repository. You can push changes back to GitHub at any time.
You will not need Python installed on your machine. But, if you are courious, below are the installation instructions for both Windows and macOS.
-
Go to the official Python website.
-
Download the latest version of Python for Windows.
-
Run the installer and make sure to check the box Add Python to PATH before proceeding.
-
Verify the installation by opening the Command Prompt and typing:
python --version
You should see the installed Python version.
-
Open the Terminal and check if Python is pre-installed by typing:
python3 --version
-
If not installed, use Homebrew to install Python:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" brew install python -
Verify the installation by typing:
python3 --version
| Time | Topic | Description |
|---|---|---|
| 9:30 | Welcome & Python Basics Recap | Quick overview of Python basics: syntax, data types, loops, and conditionals. |
| 10:45 | Advanced Functions | Higher-order functions (map, filter, reduce), unpacking arguments, and lambda functions. |
| 11:15 | Break | Relax and recharge. |
| 11:30 | File Handling | Handling text, CSV, and JSON files. |
| 12:00 | Python Syntax Deep Dive | Explore comprehensions (list, set, dict), unpacking operators, and nested loops. |
| 12:30 | Real-World Problem Solving | Solve intermediate-level problems using advanced data types and functions. |
| Time | Topic | Description |
|---|---|---|
| 9:30 | Revisiting Object-Oriented Programming | Briefly revisit OOP: focus on practical class structures, inheritance, and custom methods. |
| 10:30 | Lab Setup | Introduce the lab objective: Working with Python and Large Language Models (LLMs). |
| 11:00 | Break | Relax and recharge. |
| 11:15 | Lab: Building an LLM Integration | Hands-on lab to integrate an LLM with Python. |
| 12:45 | Lab Wrap-Up and Discussion | Present and discuss lab outcomes. Troubleshoot challenges and summarize key takeaways. |
-
Clone the Repository:
-
Use the following command to clone your forked repository:
git clone https://github.com/your-username/TS-Python-Base-Course-Public.git
-
-
Follow the Course:
- Navigate to the appropriate folder for each module (e.g.,
01 - Python Basics Course Day 1.ipynb,03 - Day 1 Solutions.ipynb). - Open Jupyter Notebooks or Python scripts provided in each folder.
- Navigate to the appropriate folder for each module (e.g.,
-
Complete Exercises:
- Each module includes exercises to reinforce the concepts. Solutions are provided in the
solutionsnotebooks.
- Each module includes exercises to reinforce the concepts. Solutions are provided in the
-
Participate in Labs:
- The
labsnotebook contains the final lab projects. Follow the instructions to complete the tasks.
- The