Programming · WDC-01-38

Python Basic

Python Basic is a beginner course in Python programming that builds solid foundations in conditions, loops, functions, modules, file handling and object-oriented programming, then moves on to databases, Git and simple GUI programs. It suits programming beginners, IT teams, teachers and students who want a language they can learn quickly.

Updated
From 4,050 THB / person 4,500 −10% excl. VAT 7% · group rates available
PDFDownload the course outline
  • Duration12 hours · 2 days
  • FormatOnsite / live online
  • Next roundOn request
  • CertificateIncluded

Course overview

Python is one of the most widely used programming languages today, in web development, automation, data work, IoT and AI. Its readable syntax and gentle learning curve make it the first language of choice for many schools and organisations. Yet many beginners learn from scattered examples, so they can write some code without understanding how the language is structured, and get stuck when they move on to real work.

This course builds a systematic foundation in Python 3.14. Learners set up their tools with uv and VS Code, then learn variables, data types, conditions, loops, data structures, functions, modules and packages. They go on to file handling, object-oriented programming, error handling and debugging, connecting to a database, working with Git and GitHub, and building a GUI program with Tkinter, with a lab in every topic. (2 days, 6 hours per day, 12 hours in total, Beginner level.)

What you’ll gain

  • Install Python 3.14 and manage projects with uv and VS Code
  • Understand the structure of Python, including variables, data types, conditions and loops
  • Use lists, tuples, dictionaries and sets appropriately to handle data
  • Write functions and organise code into modules and packages
  • Read and write text, CSV and JSON files
  • Write object-oriented programs with classes, inheritance and dataclasses
  • Handle errors, debug programs and connect to a database
  • Use Git with GitHub and build a simple GUI program

Who this course is for

  • Programming beginners looking for a first language they can learn quickly
  • IT staff and system administrators who want to use Python for automation
  • Teachers and lecturers who want an up-to-date approach to teaching Python
  • School and university students who want solid foundations before moving on to data or AI
  • People who have tried some Python and want to get the fundamentals right

Prerequisites

  • Basic computer skills such as creating, deleting and editing files and folders
  • Able to use the internet and search for information
  • No previous programming experience is required
  • A laptop on which you can install software

Curriculum

Course Details

This is the 2026 edition that replaces the previous content of Python Basic. It keeps the original sequence of topics, from language basics, functions and modules to files, OOP, error handling, databases, Git and GUIs, but updates everything to Python 3.14, uses uv to manage Python versions and packages instead of installing several Python versions by hand, and uses VS Code as the main editor. It runs for 2 days, 6 hours per day (12 hours in total, 09:00-16:00), as lectures with a lab in every topic. Beginner level. No programming experience is needed and every tool is free to use. Pre- and post-course tests measure progress.

Day 1 The Structure of the Python Language

Section 1: Lab: Introducing Python and Setting Up Your Tools

  • Take the online pre-course test, and why Python suits beginners
  • Install uv, then install Python 3.14 and create a first project
  • Set up VS Code with the Python extension and use the Python REPL
  • Program structure, indentation and comments
  • Lab: write and run a first program with uv run

Section 2: Lab: Variables, Data Types and Conditions

  • int, float, str and bool variables and converting between types
  • Arithmetic, comparison and logical operators
  • Work with text using string methods and f-strings
  • if, elif and else with nested conditions
  • Branching with the match statement
  • Lab: a grade calculator and a cost calculator

Section 3: Lab: Loops and Data Structures

  • Loops with for, while, range, break and continue
  • Create, add, remove and search items in lists and tuples
  • Slicing and list comprehensions
  • Store key-value data with dictionaries
  • Use sets to remove duplicates and find common items
  • Lab: a number guessing game and a product list manager

Section 4: Lab: Functions

  • Define functions, pass and return values, with default and keyword arguments
  • *args, **kwargs, variable scope and lambdas
  • Write type hints and docstrings to make code readable
  • Lab: split the product manager into functions

Section 5: Lab: Modules and Packages

  • Create your own modules and use the standard library, such as math and datetime
  • Organise packages within a project
  • Install third-party packages from PyPI with uv add
  • Lab: fetch data from a web API with a third-party package
Day 2 From Fundamentals to Working Programs

Section 6: Lab: Working with Files

  • Open, read and write text files with with
  • Read a whole file or one line at a time
  • Handle paths and create or delete files with pathlib
  • Read and write CSV and JSON files
  • Lab: save and load product data from files

Section 7: Lab: Object-Oriented Programming (OOP)

  • The idea of classes and objects
  • Create classes with attributes, methods and __init__
  • Inheritance and overriding methods
  • Write shorter classes with dataclass
  • Lab: design product and shopping cart classes

Section 8: Lab: Error Handling and Debugging

  • Read error messages and tracebacks with confidence
  • try, except, else, finally and raising exceptions
  • Debug with breakpoints in VS Code
  • Lab: fix a sample program with several bugs

Section 9: Lab: Databases and Git

  • Basic SQL and using SQLite through the built-in sqlite3 module
  • Parameterised queries to prevent SQL injection
  • Examples of connecting to PostgreSQL or MySQL with a driver
  • Git basics: init, add, commit, log and .gitignore
  • Clone a project from GitHub and push your work to GitHub
  • Lab: store product data in a database and keep the code on GitHub

Section 10: Workshop: GUI Programs and Course Wrap-up

  • Create windows and basic widgets with Tkinter
  • Take input from a form and show the result
  • Workshop: a GUI product manager connected to a database
  • Use AI assistants safely to explain code, and paths for further study
  • Take the online post-course test

Schedule & training options

For individuals — public rounds

No public rounds are open right now. Join the waiting list and we will contact you first when the next round opens, or ask us on LINE. Or call 02-570-8449 or 088-807-9770

For organisations — in-house / private

  • Tailor the content to your team’s tools and projects
  • Your dates, at your office or live online
  • Quotation with tax ID for procurement
Corporate training quote

Instructors

Frequently asked questions

How do I install Python and write my first program?

On the course we use uv, a tool that manages Python and packages on Windows, macOS and Linux. Install uv, run uv python install to get Python 3.14, create a project with uv init, write code in VS Code with the Python extension and run it with uv run. Each project then keeps its own Python version and packages without conflicts.

What is the difference between a module and a package in Python?

A module is a single .py file containing functions, classes or variables that you can import. A package is a folder that groups several modules to organise a larger project. There are also third-party packages published on PyPI, which on the course you install with uv add.

How do I handle errors in Python with try and except?

Put code that might fail inside a try block and catch the errors you expect with except by type, such as ValueError or FileNotFoundError. Use else for code that runs when nothing fails and finally for work that must always happen, such as closing a file. Catch only the types you can actually handle, and read the traceback before fixing. The course also practises debugging with breakpoints in VS Code.

Who is the Python Basic course for, and what should I know beforehand?

It suits programming beginners, IT staff, teachers and students who want a language they can learn quickly. No previous programming experience is needed; you just need to manage files and folders on a computer and search for information online.

What will I be able to do after the Python Basic course?

You will be able to write correct Python with conditions, loops, functions and OOP, handle data with lists and dictionaries, read and write CSV and JSON files, handle errors and debug on your own, store data in a database, use Git with GitHub and build a simple GUI program, ready to move on to web, data, IoT or AI work. Participants who complete the training receive a Certificate of Completion.

Which software is used on the Python Basic course?

You use Python 3.14 installed through uv, write code in VS Code with the Python extension (PyCharm users are welcome to use it), use the SQLite database that comes with Python for the database labs, and use Git with a free GitHub account. Every tool is free on Windows, macOS or Linux, and you should have permission to install software on your laptop.

Related articles

Articles are published in Thai.