This is a jupyter book for the course CS1302 Introduction to Computer Programming at City University of Hong Kong. The course aims to introduce key concepts, techniques, and good practices of programming using a high-level programming language Python.
Course Intended Learning Outcomes (CILOs):
- Explain the structure of a computer program.
- Analyze, test and debug computer programs.
- Apply proper programming techniques to solve a task.
- Construct well-structured programs.
As an introductory programming course, it assumes little to no prior programming experience. However, instead of merely focusing on Python syntax, which can obscure the true challenges of programming, this course immerses learners in the complexities of using computers to solve problems. Students will explore computer architecture, delve into the design of programming languages, evaluate the efficiency of various algorithms, and understand design patterns for writing high-quality code.
You can download individual notebooks using the toolbar at the top of the page. Some code can be executed directly on the site such as:[1]
from time import asctime, localtime
print(f"{asctime(localtime())}: Hello, World!")
You will have a better experience by launching the notebooks on a Jupyter server using the action buttons at the top:
- JHub opens a JupyterHub server for registered students, offering remote storage and computing resources for an engaging AI-assisted literate programming environment.
- JLite opens a JupyterLite site, accessible without login. It runs entirely in your browser without complicated setup, but it does not support some of the packages required by the notebooks.
- To run all the core packages locally to complete the assignments, you may follow the instruction to install and run Docker.
Click the ⏻ button followed by the ▶ button.