
Master Python quickly in this crash course, covering installation, basics, data types, control statements, and external packages, with ten programming exercises to deepen your practice.
Check if python is installed from the terminal or command prompt, verify the version, and install the latest python 3 from python.org for macOS, Windows, or Linux.
Understand what programming is and how a Python file with extension .py becomes a program, which you run from the command line to print messages and update variables.
Explore popular Python IDEs and code editors—from Xcode and Visual Studio to Jupyter Notebook—and learn how to install and use them for writing and running Python code.
Explore integers and basic arithmetic in Python 3 using a Jupyter notebook, including variable assignment, addition, and division, plus the difference between / and // for integer results.
Explore floating point numbers in Python, including decimals like 3.14 and 0.75, perform arithmetic, calculate means, and use plus equal, times equal, and divide equal for updates.
Learn Python strings through concatenation, converting numbers to strings, and zero-based indexing to build dynamic messages like welcome text, first characters, and active user counts.
Explore booleans and boolean logic in Python by using age comparisons such as age > 18, assigning true or false, and applying these to control access.
Master Python if-else control flows using age-based conditions and print statements. Build branching logic with elif and else, exploring comparisons like greater than and greater or equal.
Demonstrate Python loops by simulating a growing age with a while loop and iterating ranges with for loops, using if conditions to feed age groups.
Master Python lists by creating and indexing usernames, iterating with for loops, using negative indexing, merging lists with plus, and append new entries.
Model a user as a two-value tuple (username and age) or as a list, and retrieve the username while ignoring the other value with an underscore.
Learn how to use dictionaries in python to store user data and metadata, access values by keys, iterate over keys, and handle lists of dictionaries.
Explore sets in Python by creating empty sets with set(), adding users with add, and comparing to lists. Learn that sets remove duplicates automatically and convert between lists and sets.
Define and use a Python function that processes a list of users and prints each user's age. Import the function from another file to reuse code.
Explore building a Python class to model a square with position, size, and color, instantiate objects, and compute corner coordinates with methods.
Install and import external modules with pip to enable Python visualization. Plot a square using matplotlib, customize axes with aspect ratio, and display the result.
Learn to implement a Python is_multiple function that checks if a is a multiple of b using a while loop and the modulo operator, with representative tests.
Build a Python-based compound interest calculator that computes amounts after years using the formula amount times one plus rate to the power of years, and explore reaching targets with plots.
Create a Python function that computes post-tax amounts by applying a 21% European tax to a pre-tax price, demonstrating with €100 becoming €121.
Plot a star triangle from a given integer base, printing spaces and stars while validating odd bases with modulo two and handling invalid bases with error messages.
Learn to implement a get_max_value function that finds the maximum in a list, avoids Python keywords, handles empty lists, and uses minus infinity initialization for negatives.
Implement a Python function that sorts a list, returning a new sorted list. Enable ascending or descending order via a default parameter, using min/max and list removal.
Learn to build a Python function that removes duplicates from a list, test with sample data, and compare approaches using is in, sets, and list reconstruction.
Learn to represent matrices in Python with lists of lists, implement matrix multiplication, validate dimensions, and verify results using the identity matrix and a sample matrix.
Explore implementing the Fibonacci sequence in Python using a recursive function, with base cases f(0)=0 and f(1)=1, and learn to validate results with given test values while avoiding infinite recursion.
Build a Python function DCA that takes a list of stock prices and a yearly investment amount, calculates the shares purchased over time, and returns the current portfolio value.
Express gratitude for participation and invite questions and constructive feedback to improve the course. Encourage reviews and suggestions for future Python courses as the instructor plans ongoing enhancements.
In this crash course, we will cover the fundamentals of the Python programming language. This course aims to be straight to the point while being rigorous and easy to understand. At the end of the course, a series of ten exercises are proposed and solved.
I believe that a programming language is learned by doing, and this course aims to give you the necessary basics to get started so that you can improve your skills at your own pace through practice.
At the end of this course, the participant will be able to use programming (and more specifically the Python programming language) to solve real problems. This course is also intended to be a springboard to more advanced and specific courses such as artificial intelligence, machine learning, web development or video game development.
Beyond Python, this course is also a general introduction to programming.
Concepts covered:
Variables and primitive types.
Fundamental data structures (lists, sets, tuples, and dictionaries).
Control flows (if, else).
Loops (for, while).
The concept of functions.
The concept of classes.
The installation and use of packages.
The visualisation of objects and data with matplotlib.
The modulo operator.
Don't wait any longer before launching yourself into the world of programming!