Skip to content

Programming with Python syllabus

BMS2039 units · 84 topicsAcademic year 2083/84
Browse the units

1Introduction (3 hrs)

  1. 1.1
    Python introduction
  2. 1.2
    Why Python
  3. 1.3
    Installing Python
  4. 1.4
    Using interactive shell from console
  5. 1.5
    Running Python scripts from console
  6. 1.6
    Using interactive shell from IDLE
  7. 1.7
    Using IDEs
  8. 1.8
    Installing third party libraries
  9. 1.9
    Writing comments
  10. 1.10
    Indentation
  11. 1.11
    Variables
  12. 1.12
    Operators

2Built-In Data Types (7 hrs)

  1. 2.1
    Numbers: integers
  2. 2.2
    Booleans
  3. 2.3
    Real numbers
  4. 2.4
    Complex numbers
  5. 2.5
    Fractions and decimals
  6. 2.6
    Immutable sequences: strings, bytes and tuples
  7. 2.7
    Mutable sequences: lists, bytearrays
  8. 2.8
    Set types
  9. 2.9
    Mapping types: dictionaries
  10. 2.10
    Dates and times
  11. 2.11
    Collections module
  12. 2.12
    Small value caching
  13. 2.13
    Indexing and slicing

3Conditionals and Iterations (5 hrs)

  1. 3.1
    Introduction
  2. 3.2
    The if statement
  3. 3.3
    The for loop
  4. 3.4
    The while loop
  5. 3.5
    The break and continue statements
  6. 3.6
    The else clause after for or while loops
  7. 3.7
    The walrus operator

4Functions (4 hrs)

  1. 4.1
    Introduction
  2. 4.2
    Why use functions? Defining functions
  3. 4.3
    Passing arguments
  4. 4.4
    Return values and returning multiple values
  5. 4.5
    Recursive function
  6. 4.6
    Anonymous function
  7. 4.7
    Built-in functions

5Comprehensions and Generators (3 hrs)

  1. 5.1
    The map, zip and filter functions
  2. 5.2
    Comprehensions: list, dictionary and set comprehensions
  3. 5.3
    Generators

6Object-oriented Programming, Decorators, Iterators, and Modules (14 hrs)

  1. 6.1
    Decorators
  2. 6.2
    Object-oriented programming concepts
  3. 6.3
    Creating class and object
  4. 6.4
    Inheritance
  5. 6.5
    Static methods and class methods
  6. 6.6
    Private properties
  7. 6.7
    The property decorator
  8. 6.8
    Operator overloading
  9. 6.9
    Writing custom iterator
  10. 6.10
    Modules and packages

7Exception and File Handling (4 hrs)

  1. 7.1
    Exceptions
  2. 7.2
    Handling exceptions
  3. 7.3
    Defining your own exception
  4. 7.4
    Reading and writing files
  5. 7.5
    Reading and writing CSV files

8Basic Data Processing and Analysis Using Python Libraries (6 hrs)

  1. 8.1
    NumPy: introduction, array creation, dimensions, data types, array attributes
  2. 8.2
    NumPy: indexing and slicing
  3. 8.3
    NumPy: array copy and view
  4. 8.4
    NumPy: creating array from numerical range
  5. 8.5
    NumPy: array broadcasting
  6. 8.6
    NumPy: iterating over array
  7. 8.7
    NumPy: sorting and searching
  8. 8.8
    NumPy: statistical functions
  9. 8.9
    Pandas: series and data frames
  10. 8.10
    Creating data frames
  11. 8.11
    The head and tail functions
  12. 8.12
    Attributes
  13. 8.13
    Working with missing data
  14. 8.14
    Indexing, slicing and subsetting
  15. 8.15
    Merging and joining data frames
  16. 8.16
    Working with CSV data

9Data Visualization with Matplotlib (2 hrs)

  1. 9.1
    Introduction
  2. 9.2
    Marker
  3. 9.3
    Line
  4. 9.4
    Color
  5. 9.5
    Label
  6. 9.6
    Grid lines
  7. 9.7
    Subplot
  8. 9.8
    Scatter plot
  9. 9.9
    Bar graph
  10. 9.10
    Histogram
  11. 9.11
    Pie chart and box plot