Getting Started With Python: COMP1021 Introduction To Computer Science
Getting Started With Python: COMP1021 Introduction To Computer Science
David Rossiter
Outcomes
• After completing this presentation, you are
expected to be able to:
1. Understand the history and some background
information of the Python programming
language
2. Briefly explain the difference between a
compiled and an interpreted program
3. Install Python and start using Python through
the command line tool and IDLE
Python
interpreter
myprogram.py python.exe
Python
interpreter
myprogram.py python.exe
PC users
Mac users
The ITSC Virtual Barn
• The ITSC virtual barn lets you access Python
(and other software) anywhere:
http://itsc.ust.hk/services/academic-teaching-
support/facilities/virtual-barn/overview/
• You can find Python 3.6 in the
‘Programming Software’ pool
After Installing • After installing, you will see
several options if you search
Python 3.6 for Python in the start menu
(These images are from a PC)
• Here is some documentation
about Python
– Probably you won’t need to
look at this, the COMP1021
notes and labs should be
enough
• Note - you probably won’t
see this in the CS labs, but
you will see it if you install
Python in your own
computer
Using Python
• Let’s look at how
we can start using
Python
• There are two ways
we will look at now
Python
interpreter
python.exe
3. The Python
interpreter 4. The interpreter outputs
executes the results, which are
whatever is shown in the shell
given to it
Using a Python Shell –
Some Simple
Python Code