- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AINeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++
- ChallengesNew
Python from zero
From print() and variables to conditions, loops, strings, collections, functions, files and classes, with a challenge after each topic.
Start the path →1 Getting started 4 lessons
- Lesson 1 challenge Hello World in Python Write your first Python program and print text with print().
- Lesson 2 challenges Variables and Data Types in Python Store values in variables and learn Python's basic types: str, int, float and bool.
- Lesson 4 challenges Numbers and Operators in Python Do arithmetic in Python with +, -, *, /, //, % and **, and compare values.
- Lesson 1 challenge User Input in Python Read what the user types with input() and convert it to a number.
2 Making decisions 2 lessons
- Lesson 3 challenges If Else in Python Make decisions with if, elif and else, and combine conditions with and, or and not.
- Lesson 3 challenges Even or Odd in Python Determine whether an integer is even or odd.
3 Loops 3 lessons
- Lesson 3 challenges For Loop in Python Learn Python for loops with range, enumerate, and a runnable example.
- Lesson 4 challenges While Loop in Python Run a Python while loop and learn how its condition controls repetition.
- Lesson 3 challenges Multiplication Table in Python Print the first five multiples of a number.
4 Strings and text 3 lessons
- Lesson 3 challenges Strings in Python Work with text in Python: length, indexing, slicing and string methods.
- Lesson 3 challenges String Formatting in Python Build readable output with Python f-strings and format specifiers.
- Lesson 3 challenges Palindrome in Python Check whether text is a palindrome using Python string operations.
5 Collections 5 lessons
- Lesson 4 challenges List in Python Create, update, filter, and iterate over a Python list.
- Lesson 2 challenges Tuple in Python Group values in a tuple, unpack them and return several values from a function.
- Lesson 1 challenge Set in Python Keep unique values with a Python set and combine sets with union and intersection.
- Lesson 3 challenges Dictionary in Python Create, update, and iterate over a Python dictionary.
- Lesson 3 challenges List Comprehension in Python Transform and filter values with a Python list comprehension.
6 Functions 3 lessons
- Lesson 3 challenges Function in Python Define and call a Python function with parameters and a return value.
- Lesson 1 challenge Modules and Imports in Python Use Python's standard library with import, from ... import and aliases.
- Lesson 2 challenges Fibonacci in Python Generate the Fibonacci sequence in Python and run the code online.
7 Errors and files 3 lessons
- Lesson 2 challenges Try Except in Python Handle invalid input with Python try, except, and finally.
- Lesson 1 challenge File Handling in Python Write, append and read text files in Python with open() and with.
- Lesson 2 challenges Read and Write JSON in Python Convert between JSON text and Python dictionaries.
8 Objects and classes 2 lessons
- Lesson 1 challenge Class and Object in Python Define a Python class, create an object, and call an instance method.
- Lesson 1 challenge Object-Oriented Programming in Python Learn encapsulation, inheritance, method overriding, and polymorphism with a runnable Python OOP example.