Python 3 Tutorial

By Xah Lee. Date: . Last updated: .

This is a Python 3 tutorial. For python 2, see: Python 2 Basics .

Python 3 source file must be saved in UTF 8 encoding. [see Python Source Code Encoding]



Convert to Int/Float/String

Assignment Operators

True and False

Conditional: if then else

Loop, Iteration

Data Structure

Use Module


Class and Object

Writing a Module