---
# System prepended metadata

title: Python Tutorial

---

# Python Tutorial


## 1. Introduction
### 1.1 Python Getting Started
### 1.2 Python Keywords and Identifier
### 1.3 Python Comments
### 1.4 Python Variables
### 1.5 Python Data Types
### 1.6 Python Type Conversion
### 1.7 Python I/O and Import
### 1.8 Python Operators
### 1.9 Python Namespace

## 2. Python Flow Control
### 2.1 Python if...else
### 2.2 Python for Loop
### 2.3 Python while Loop
### 2.4 Python break and continue
### 2.5 Python Pass

## 3. Python Functions
### 3.1 Python Function
### 3.2 Python Argument
### 3.3 Python Recursion
### 3.4 Anonymous Function
### 3.5 Global, Local and Nonlocal
### 3.6 Python Global Keyword
### 3.7 Python Modules
### 3.8 Python Package

## 4. Python Datatypes
### 4.1 Python Numbers
### 4.2 Python List
### 4.3 Python Tuple
### 4.4 Python String
### 4.5 Python Set
### 4.6 Python Dictionary
      
## 5. Python Files
### 5.1 Python File Operation
### 5.2 Python Directory
### 5.3 Python Exception
### 5.4 Python Handling
### 5.5 User-defined Exception

## 6. Python Object and Class
### 6.1 Python OOP
### 6.2 Classes and Objects
### 6.3 Python Inheritance
### 6.4 Multiple Inheritance
### 6.5 Operator Overloading

## 7. Python Advanced Topics
### 7.1 Python Iterator
### 7.2 Python Generator
### 7.3 Python Closure
### 7.4 Python Decorators
### 7.5 Python Property
### 7.6 Python RegEx
### 7.7 Python Examples

## 8. Python Date and Time
### 8.1 Python datetime Module
### 8.2 Python datetime.strftime()
### 8.3 Python datetime.strptime()
### 8.4 Current date and time
### 8.5 Get current time
### 8.6 Python Timestamp to datetime
### 8.7 Python time Module
### 8.8 Python time.sleep()


## 1. Introduction

### 1.3 Python Comments
Comments can be used to explain Python code, and to make it more readable. It can also be used to prevent execution when testing alternative code.

There are 2 types of comment in Python.
Single line comment

Multiline comment.

Single-line comments start with  slashes (//).




 