This repository stores the slides and code examples for the workshop "Invitation to Python" at HKBU, 24 Nov 2018.
This one-day workshop, offered by the Data and Media Communication Concentration, attempts to explore fundamental issues on the intersection of programming, data science, and data-driven journalism, and public expression. It will also make a whirlwind tour of Python. Topics include package installation, program execution, Python variables, expressions, data structures, functions, and fundamentals of control flow statements.
By the end of the workshop, students will have a preliminary understanding of data science in the context of media and communication, and preparatory knowledge of Python. It aims to lay the foundation for advanced data and media communication courses, such as Data Analysis Studio, Exploratory Data Analysis and Visualization, Data Media Projects, and the proposing interactive DMC news platform.
Section 1. Introduction (Slides)
- who, what, How
- why programming
- digital and media education at a glance
- articulating an interdisciplinary knowledge hub
Section 2. Tool installation (Slides)
- Python 3.x
- Anaconda
- Markdown language
- Jupyter Notebook (aka Python in a notebook)
Section 3. A Byte of Python (Notebooks)
- "computational thinking"
- Python programme execution
- variables and expressions
- data types
- data structures - list - dictionary - tuple - set
- functions
- control flow statements (issue: indentation)
- The conditions (
if
,else
,elif
) - The loops (for
,while
,try
andexcept
)
- the problem, the question, and the motivation
- four of the many approaches to find a story
- present a story
- Wrapping up
Dr Xinzhi ZHANG (M.A. & Ph.D., CityU HK) is a Research Assistant Professor at JOUR. His research interests include comparative political communication, emerging technologies and social change, digital humanities, and data-driven journalism. His research works have been published on journals such as Computers in Human Behavior, International Political Science Review, and Digital Journalism. He has taught several storytelling courses such as Multimedia Communication (broadcasting and online media), Films and Storytelling (scripts and narrative), Languages, Cultures, and Communication (text and discourse), and Social Media Data Acquisition and Processing with Python (Course Repo). He now works for the Data and Media Communication Concentration at JOUR.
We shall give a big applaud to Dr Li Chen, the coordinator of DMC at the Department of Computer Science, who is very considerate to propose this workshop; and Dr Liang Lan from COMP, who previewed all the slides and codes and offered some comments. Mr Xu Chen (BSc CS, COMP) and Miss Can He (MSc ITM, COMP) tested all the codes and shared several suggestions from the perspective of a (CS) student; and of course, we shall thank Miss Ripple Yuan, the PA of DMC who carefully organized this workshop.