Tag: Selection

The Zoo Keeper’s Puzzles

zoo-penguins

Learning Objectives: This set of puzzles will improve your Python skills when using If Statements (Selection) You will focus on: Using comparison operators: ==, !=, < , >, = Using Boolean Operators: AND, OR, NOT if statements use comparison operators

Coding Puzzles

code-puzzle-start

Complete the following coding puzzles by drag and dropping the lines of codes in the correct order to recreate basic computer programs. Click on the picture below to access the coding puzzles:

Sequencing, Selection & Iteration

class-register

When you write lines of code, there are three ways you can control the order these lines will be executed by the computer: Sequencing: This means that the computer will run your code in order, one line at a time

Guess the country

globe

For this challenge we are going to create a game where the user plays against the computer. The aim of this game is to guess the name of a country. The computer will give the player clues to help them

Haunted House

haunted-house

You are going to write a Python game where the user walks within the different rooms of a haunted house. In each room, something will happen. You will decide what happens when the user enters a room. You can use

Yes or No!

yes-no

Learning Objectives When your computer prorgam is asking questions to the end-user, the end-user may not answer these questions the way you expected them to. This may cause your program to not work properly. Ideally a good program should use

Flags of the World

flags-flowchart

We are trying to build a program that will ask the end-user to choose a flag amongst six flags. The program will then try to guess the selected flag by asking a maximum of two questions. Look at the flowchart

My daily routine

clock

Learning Objectives When you write lines of code, there are three ways you can control the order these lines will be executed by the computer: Sequencing: This means that the computer will run your code in order, one line at

The window cleaner’s quote

window-cleaner

A window cleaner uses the following pricing policy to calculate how much to charge for cleaning all the windows of his customer’s dwelling. This pricing policy is based on the number of windows that need to be cleaned and works

Penalty Shootout

football-goal

For this challenge you are going to write a computer program where the user tries to score a goal against the computer. The user will be asked where do they want to shoot and will have to choose one of