Programming with Python syllabus
BMS2039 units · 84 topicsAcademic year 2083/84
Browse the units
1Introduction (3 hrs)
- 1.1
Python introduction
- 1.2
Why Python
- 1.3
Installing Python
- 1.4
Using interactive shell from console
- 1.5
Running Python scripts from console
- 1.6
Using interactive shell from IDLE
- 1.7
Using IDEs
- 1.8
Installing third party libraries
- 1.9
Writing comments
- 1.10
Indentation
- 1.11
Variables
- 1.12
Operators
2Built-In Data Types (7 hrs)
- 2.1
Numbers: integers
- 2.2
Booleans
- 2.3
Real numbers
- 2.4
Complex numbers
- 2.5
Fractions and decimals
- 2.6
Immutable sequences: strings, bytes and tuples
- 2.7
Mutable sequences: lists, bytearrays
- 2.8
Set types
- 2.9
Mapping types: dictionaries
- 2.10
Dates and times
- 2.11
Collections module
- 2.12
Small value caching
- 2.13
Indexing and slicing
3Conditionals and Iterations (5 hrs)
- 3.1
Introduction
- 3.2
The if statement
- 3.3
The for loop
- 3.4
The while loop
- 3.5
The break and continue statements
- 3.6
The else clause after for or while loops
- 3.7
The walrus operator
4Functions (4 hrs)
- 4.1
Introduction
- 4.2
Why use functions? Defining functions
- 4.3
Passing arguments
- 4.4
Return values and returning multiple values
- 4.5
Recursive function
- 4.6
Anonymous function
- 4.7
Built-in functions
5Comprehensions and Generators (3 hrs)
- 5.1
The map, zip and filter functions
- 5.2
Comprehensions: list, dictionary and set comprehensions
- 5.3
Generators
6Object-oriented Programming, Decorators, Iterators, and Modules (14 hrs)
- 6.1
Decorators
- 6.2
Object-oriented programming concepts
- 6.3
Creating class and object
- 6.4
Inheritance
- 6.5
Static methods and class methods
- 6.6
Private properties
- 6.7
The property decorator
- 6.8
Operator overloading
- 6.9
Writing custom iterator
- 6.10
Modules and packages
7Exception and File Handling (4 hrs)
- 7.1
Exceptions
- 7.2
Handling exceptions
- 7.3
Defining your own exception
- 7.4
Reading and writing files
- 7.5
Reading and writing CSV files
8Basic Data Processing and Analysis Using Python Libraries (6 hrs)
- 8.1
NumPy: introduction, array creation, dimensions, data types, array attributes
- 8.2
NumPy: indexing and slicing
- 8.3
NumPy: array copy and view
- 8.4
NumPy: creating array from numerical range
- 8.5
NumPy: array broadcasting
- 8.6
NumPy: iterating over array
- 8.7
NumPy: sorting and searching
- 8.8
NumPy: statistical functions
- 8.9
Pandas: series and data frames
- 8.10
Creating data frames
- 8.11
The head and tail functions
- 8.12
Attributes
- 8.13
Working with missing data
- 8.14
Indexing, slicing and subsetting
- 8.15
Merging and joining data frames
- 8.16
Working with CSV data
9Data Visualization with Matplotlib (2 hrs)
- 9.1
Introduction
- 9.2
Marker
- 9.3
Line
- 9.4
Color
- 9.5
Label
- 9.6
Grid lines
- 9.7
Subplot
- 9.8
Scatter plot
- 9.9
Bar graph
- 9.10
Histogram
- 9.11
Pie chart and box plot