Workshop: Introduction to Python programming for non-programmer II
Workshop/ Training/ Webinar
-
Date
09 - 16 Aug 2022
-
Organiser
ITS
-
Time
14:30 - 17:00
-
Venue
Online (MS Teams)
Enquiry
IT HelpCentre (Hotline) 2766 5900 / (WhatsApp/ WeChat) 6577 9669
Summary
Introduction to Python programming for non-programmer II (2 lessons)
Date: 9 Aug and 16 Aug
Time: 14:30 - 17:00
Target Audience: All Students
Medium of Instruction: English
Pre-requisite: Preferably taken "Workshop: Introduction to Python programming for non-programmer I"
What you will learn
- Understand the concept and the aim of object-oriented programming (OOP)
- Create an object blueprint by defining a class
- Create an object from a defined class
- Initialize instance attributes of a class
- Define instance methods of a class
- Create a child class that inherits properties from the parent class
- Create a protected variable of a class which cannot be accessed outside the class
- Create a private variable of a class which cannot be accessed outside, within or by a subclass
- Create a game from scratch to summarize what have learnt in the two courses
Course outline
(1) Lesson 1
- Object-oriented programming
1. Defining a class and creating an object
2. Instantiate an object: the __init__method
3. Creating class method
4. Inheritance: parent class vs child class
5. Encapsulation: protected member vs private member
(2) Lesson 2
- Guided project: Building a tic-tac-toe game to play between humans or play against the computer/ Solving sudoku by backtracking algorithm