In this ICS4U lesson you will be learning how to:
The programming language of choice in this course is Python . I am aware that some of you will have programmed in different languages in Grade 11. There really isn’t much i can do to change that, but its the skills from grade 11 are what were important. So if you were a good coder in grade 11, it shouldn’t be too much of a chore to pick up a new language pretty quickly, and you will need to put in some extra effort right away to get caught up with the essentials of Python. If you have any interest in computer science as a future career, working with different languages is essential.
Python is an Interpreted language and thus needs the python interpreter to run the code. We can run that interpreter on our machines or through a server on the web.
The first thing you will need to do is setup an IDE (Integrated Development Environment) o your computer to run Python.
This is the most straightforward and lightweight way to create and run python programs on your computer. It comes built in when you download python from python.org.
On your personal device, you should visit python.org and download python version of your choice and install it
If you are using an HWDSB device (school PC or student issued laptop) you can access the download via the software center. (Search Software Center on Windows)
IDLE Demo
Installing additional Packages
Later on in the course you will be using a package for some more interesting projects. More specifically I use Pygame for the project management portion of the curriculum
If you are installing from a HWDSB device, you don’t need to do anything else, Pygame will come preinstalled with that download.
If you are using your own personal device and have downloaded python from python.org, you will need to manually install pygame.
To install the pygame package and be able to use them with IDLE, we can use a package management system called PIP. To access PIP you need to open a Terminal Window on your computer.
To actually install the packages, you need to just type the following in your terminal window
These are other IDE’s you can use, but I’m not trouble shooting them in this course. Feel free to try them out, but you are on your own to figure out how to get them setup and working.
Install Python and Communicate with your teacher the results
import pygame
name = input("Enter your name: ")
print("Hi",name)
Go to the discussion forum on the HUB
Return to ICS4U Main Page
