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]

Strings

Arithmetic

Convert to Int/Float/String

Assignment Operators

True and False

Conditional: if then else

Loop, Iteration

Data Structure

Use Module

Function

Class and Object

Writing a Module