Skip to content

mvisentini90/TS-Python-Base-Course-Public

 
 

Repository files navigation

TS-Python-Base-Course-Public

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.

Table of Contents

  1. Course Overview
  2. Prerequisites
  3. Installation Instructions
  4. Course Content
  5. How to Use This Repository
  6. Contributing

Course Overview

This course covers the following topics:

  1. Python Basics: Variables, data types, operators, basic syntax, and control flow.
  2. Data Structures: Lists, tuples, sets, and dictionaries.
  3. Functions and Modules: Writing reusable code and modular programming.
  4. Object-Oriented Programming (OOP): Classes, objects, inheritance, polymorphism, and encapsulation.
  5. Practical Applications: Real-world coding exercises and a final laboratory session on LangChain and large language models.

Prerequisites


Installation Instructions

Setting Up Codespaces

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.

What is GitHub Codespaces?

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.

How to Set Up Codespaces for This Course

  1. Fork this Repository:

  2. Create a Codespace:

    • Navigate to your forked repository.
    • Click the Code button and select the Codespaces tab.
    • Click Create Codespace on main.
  3. 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.
  4. Sync Changes:

    • All changes you make in Codespaces are saved to your forked repository. You can push changes back to GitHub at any time.

Installing Python

You will not need Python installed on your machine. But, if you are courious, below are the installation instructions for both Windows and macOS.

Windows

  1. Go to the official Python website.

  2. Download the latest version of Python for Windows.

  3. Run the installer and make sure to check the box Add Python to PATH before proceeding.

  4. Verify the installation by opening the Command Prompt and typing:

    python --version

    You should see the installed Python version.

macOS

  1. Open the Terminal and check if Python is pre-installed by typing:

    python3 --version
  2. 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
  3. Verify the installation by typing:

    python3 --version

Course Content

Day 1

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.

Day 2

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.

How to Use This Repository

  1. 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
  2. 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.
  3. Complete Exercises:

    • Each module includes exercises to reinforce the concepts. Solutions are provided in the solutions notebooks.
  4. Participate in Labs:

    • The labs notebook contains the final lab projects. Follow the instructions to complete the tasks.

Enjoy your Python learning journey!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 75.0%
  • Jupyter Notebook 25.0%