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

Input, output and calculations

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

CourseHES 211
Week4 of 16
SemesterII
TutorOnline in the course chat

This week’s topics

Input, output and calculations

  1. Asking the user for input
  2. Converting data types
  3. Simple calculations

What you will be able to do

  • 3.2 Handle user input and output effectively.
  • 2.1 Use variables, data types and constants.

Activity

Write a program that converts euros to another currency.

Study materials

Further resources

  • Introduction to Python Programming, 1.2: Input/output · PDF · OpenStax Introduction to Python Programming (2024), 1.2: asking the user for input and printing output, pp. 10–13 · for registered students
  • Introduction to Python Programming, 2.2–2.4: Type conversion · PDF · OpenStax Introduction to Python Programming (2024), 2.2–2.4: converting data types and mixing numbers, pp. 40–48 · for registered students
  • Python Notes for Professionals, ch. 9: Simple Mathematical Operators · PDF · GoalKicker Python Notes for Professionals, ch. 9: +, -, *, /, // and % in Python, pp. 57–64 · for registered students
  • 37 million compilations: investigating novice programming mistakes on large-scale student… · Open-access article · Altadmri & Brown (2015), SIGCSE '15, ACM. The most common beginner errors, including type mismatches, from 37 million compilations. · 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