Python Tutorial
Learn Python
Python is a popular programming language.
Python can be used on a server to create web applications.
Start learning Python now »Learning by Examples
With our "Try it Yourself" editor, you can edit Python code and view the result.
Click on the "Try it Yourself" button to see how it works.
Python File Handling
In our File Handling section you will learn how to open, read, write, and delete files.
Python Database Handling
In our database section you will learn how to access and work with MySQL and MongoDB databases:
Python Exercises
Many chapters in this tutorial end with an exercise where you can check your level of knowledge.
Exercise?What is this?
Test your skills by answering a few questions about the topics of this page
What is a correct way to declare a Python variable?
Python Examples
Learn by examples! This tutorial supplements all explanations with clarifying examples.
Python Quiz
Test your Python skills with a quiz.
Login to Track Your Progress
Create a free W3Schools account and get access to more features and learning materials:
View your completed chapters, quizzes, and exercises
Keep an eye on your progress and daily streaks
Jump back in exactly where you left off
Create your own personal website
Note: This is an optional feature. You can study at W3Schools without creating an account.
Python Reference
You will also find complete function and method references:
Download Python
Download Python from the official Python web site: https://python.org