🐍 Python
Learn Python from the Basics
Python, the language behind AI and data analysis, taught from the ground up — no setup required. A real Python engine (Pyodide) runs directly in your browser, so you can try every example immediately.
What is Python used for?
Python is beloved for its clean, simple syntax and is used across a huge range of roles — AI/ML engineers, data scientists, and backend web developers alike. With the recent AI boom, it's one of the most in-demand languages today.
Common uses & related roles:
- AI / Machine Learning development
- Web application development
- Backend development
- Data analysis
- Data Science
🐍Python Lessons
- 01Variables and print()
- 02Conditionals (if statements)
- 03Loops (for statements)
- 04Writing Your First Function
- 05Working with Lists
- 06Working with Dictionaries (dict)
- 07Loops (while statements)
- 08Working with Strings
- 09Introducing Classes (Object-Oriented Programming)
- 10Error Handling (try...except)
- 11List Comprehensions
- 12Generators and yield
- 13File Handling Basics
- 14The match Statement (Python's switch)
- 15The Conditional (Ternary) Expression
- 16Inheritance (Extending a Class)
- 17Writing Comments
- 18Logical Operators (and, or, not)
- 19Constants (values you agree not to change)
- 20Splitting and Joining Strings (split, join)
- 21Writing None-Safe Code
- 22Searching a List (in and finding the next match)
- 23Transforming a List with map()
- 24Two-Dimensional Lists (grid-shaped data)
- 25Writing a Custom Exception Class
- 26Default Arguments (initial parameter values)
- 27Working with Sets
- 28Checking Correctness with assert (your first step into testing)
- 29Higher-Order Functions (passing a function as an argument)
- 30Stacks and Queues (basic data structures)
- 31Type Conversion (casting) Basics
- 32Intro to Regular Expressions (pattern matching)
- 33The Binary Search Algorithm
- 34Building a Caesar Cipher (a character-shifting cipher)
- 35Understanding How Bubble Sort Works
- 36Building and Displaying Dates (basic year/month/day operations)
- 37Writing Multiple Test Cases Together
- 38Speeding Up Calculations with Memoization (caching)
- 39Normalizing Strings (strip, unifying case)
- 40Shallow Copy vs. Deep Copy
- 41Enum (Enumerated Types) Basics
- 42Flattening a List
- 43Reversing a String and Checking for Palindromes
- 44Pairing Up Two Lists (the zip operation)
- 45Rounding Numbers (floor, ceil, round)
- 46Multi-Line Strings (triple quotes)
- 47Functions That Return Multiple Values (tuples)
- 48Finding the GCD and LCM (the Euclidean algorithm)
- 49Formatting Numbers (padding digits, decimal places)
- 50Cleanup Logic with try/except/finally
- 51Writing Type-Agnostic Functions
- 52The with Statement (Context Managers) Basics
- 53Generating Random Numbers
- 54Bitwise Operators (AND, OR, XOR, shifts)
- 55Class Variables and @staticmethod Basics
- 56Waiting for a Fixed Amount of Time (time.sleep)
- 57Watch Out for Floating-Point Rounding Errors
- 58Type Hints Basics
- 59FizzBuzz (the classic practice problem)
- 60Checking Whether a Number Is Prime
- 61Set Operations (union, intersection, difference)
- 62Converting Number Bases (binary, hex)
- 63Checking Balanced Parentheses (an application of stacks)
- 64Checking Whether Two Words Are Anagrams
- 65Checking Whether a Year Is a Leap Year
- 66Converting Temperature (Celsius to Fahrenheit)
- 67Prime Factorization
- 68[Applied] Build a Household Budget Tool
Ad space (in-article)
