Business and technology qualifications, Levels 3-6, in Brussels. Explore qualifications
Portal login
Diploma in Higher Education Studies

Your first Python program

HES 211 · Introduction to Programming with Python — Week 2 of 16

CourseHES 211
Week2 of 16
SemesterII
TutorOnline in the course chat

This week’s topics

Your first Python program

  1. Writing and running code
  2. The print statement
  3. Using an IDE

What you will be able to do

  • 1.2 Write and run a simple Python script.

Activity

Write and run a program that prints a short message.

Study materials

Further resources

  • Introduction to Python Programming, 1.1–1.2: First programs and print() · PDF · OpenStax Introduction to Python Programming (2024), 1.1–1.2: writing and running a first program with print(), pp. 8–13 · for registered students
  • Introduction to Python Programming, 2.1: The Python shell · PDF · OpenStax Introduction to Python Programming (2024), 2.1: running code in the Python shell, pp. 38–39 · for registered students
  • Introduction to Computer Science, 9.3: Integrated Development Environment · PDF · OpenStax Introduction to Computer Science (2024), 9.3 on IDEs such as IDLE and VS Code, pp. 477–478 · for registered students
  • Teaching introductory programming: a quantitative evaluation of different approaches · Open-access article · Koulouri et al. (2014), ACM Transactions on Computing Education. Compares Python with Java as a first language for beginners. · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.
Course chat

Admitted students ask questions on this week’s page in the student portal: an AI assistant trained on the course answers first, and during the course’s timetabled classes Connect to your tutor brings your tutor into the chat, who may start a call if needed.

Open this week in the portal
Course plan
  • Week 1: What is programming? High- and low-level languages
  • Week 2: Your first Python program
  • Week 3: Variables, data types and constants
  • Week 4: Input, output and calculations
  • Week 5: Making decisions: if, elif and else
  • Week 6: Repeating code: for loops
  • Week 7: Repeating code: while loops
  • Midterm: Midterm evaluation
  • Week 9: Functions: reusable code
  • Week 10: Lists
  • Week 11: Looping through data; tuples and dictionaries
  • Week 12: Finding and fixing errors
  • Week 13: Tracing and testing a program
  • Week 14: Mini project: a small program step by step
  • Week 15: Review and coursework completion
  • Final: Final assessment and submission
Back to the course
Scroll