LEARN · PRACTICE · RUN

One Solution for Python

Learn Python with ease: short lessons with live code, 189 practice questions, and a compiler right in your browser. Free.

def greet(name):
    return f"Hello, {name}!"

for who in ["Python", "you"]:
    print(greet(who))
OUTPUT
Press Run_
Learn Python01Learn PythonPractice Python questions02Practice Python QuestionsPython compiler03Open Python Compiler
THE COURSE

Python, from your first print() to classes

20 chapters, each with short lessons, checks and practice questions.

  1. 01Introduction to Python
  2. 02The Print Function
  3. 03Programmer Mindset
  4. 04Variables
  5. 05Working With Data Types
  6. 06Comments
  7. 07Getting Input from the User
  8. 08If Statements
  9. 09Python Lists
  10. 10For Loops
  11. 11While Loops
  12. 12Working With Strings
  13. 13Dictionaries
  14. 14Tuples and Sets
  15. 15Python Functions
  16. 16Styling Your Code (PEP 8)
  17. 17Handling Errors (Exceptions)
  18. 18Python Modules
  19. 19File Handling
  20. 20Object-Oriented Programming (Classes)