Welcome to the TS Python Base Course! This repository contains all the materials, exercises, and examples used in our course designed to introduce Python programming from basic to intermediate levels, including Object-Oriented Programming concepts and practical applications. By the end of this course, you will have a strong foundation in Python and the ability to tackle real-world coding challenges.
- Course Overview
- Prerequisites
- Installation Instructions
- Course Content
- How to Use This Repository
- Contributing
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-Base-Course-Public repository.
- 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 & Setup | Introduction and environment setup. |
| 9:45 | Introduction to the Python Language | What is Python, its features, and why it's popular. |
| 10:00 | Installing Python and an IDE | Guide to installing Python and setting up an IDE. |
| 10:15 | Basic Data Types and Variables | Understanding Python data types (int, floats, str, and bool) and variables. |
| 10:45 | Basic Python Syntax | Writing Python code: syntax, indentation, and structure. |
| 11:15 | Break | Relax and recharge. |
| 11:30 | Operators | Arithmetic, logical, and comparison operators in Python. |
| 12:00 | Conditional Statements and Loops | If-else, for, while, range, map, filter, ecc. |
| 12:30 | Data Structures | Lists, Tuples, Set and Dictionaries. |
| Time | Topic | Description |
|---|---|---|
| 9:30 | Introduction to Object-Oriented Programming (OOP) | Overview of OOP. |
| 9:45 | Objects in Python | Introduction to classes and objects in Python. |
| 10:15 | Functions | Learn the fundamentals of functions. |
| 10:45 | OOP Principles | Encapsulation, inheritance, polymorphism, and abstraction. |
| 11:15 | Break | Relax and recharge. |
| 11:30 | Methods | Class and instance methods. |
| 12:00 | Lab | Hands-on session. |
-
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