1
workplan
1. Basics
2. Conditions / Loops
3. Functions / Lambda
4. Arrays
5. Lists / Tuples
6. Sets / Dictionaries
2
2
3
3
Introduction
Python is a popular programming language. It was created by Guido van
Rossum, and released in 1991.
4
Introduction
5
Why Python ?
● Python works on different platforms
● Python has a simple syntax similar to the English language.
● Python allows developers to write complex programs with few lines
● Python runs on an interpreter system
● Python can be treated in a procedural way, an object-oriented way or a
functional way
6
Python Basics - Comments
7
Python Basics - Variables
8
Python Basics - Data Types
The most commonly used data types in Python are:
1. Numeric types: This includes integers, floats, and complex numbers.
2. Boolean type: This includes True and False values.
3. Sequence types: This includes strings, lists, and tuples.
4. Mapping type: This includes dictionaries.
5. Set types: This includes sets and frozensets.
6. None type: This includes None value.
9
9
Python Basics - Data Types
Numeric types: This includes integers, floats, and complex numbers.
10
10
Python Basics - Data Types
Boolean type: This includes True and False values.
11
11
Python Basics - Data Types
Sequence types: This includes strings, lists, and tuples.
12
12
Python Basics - Data Types
Mapping type: This includes dictionaries.
13
13
Python Basics - Data Types
Set types: This includes sets and frozensets.
14
14
Python Basics - Data Types
None type: This includes None value.
15
15