New game
Download
Get Academic Plan
Share game
Fill in the Blanks
Fill in the Blanks

S3 Python Basics

Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

S3 Python Basics

Fill in the Blanks

Played 7

About this activity

Python data types and I/O basics.

Created by

United Kingdom

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
S3 Python Basics
 

Fill in the Blanks

S3 Python BasicsOnline version

Python data types and I/O basics.

by Mrs Robbie
1

In Python , data types include String , integer , real , and .
= Stores alphanumeric combinations and text .
= Stores positive or negative whole numbers .
= Stores numbers that contain decimal places as well as whole numbers .
= Stores True or False only .

Variables store , and you can display them with the python command . To get user data , use the python command , which returns a string by default . Convert this to integer with ( ) if a number is needed , or to real with float ( ) for decimals . Understanding how each type behaves helps prevent and makes programs clearer and more reliable .

2

loops are used to repeat code a set number of times , whereas loops are used to repeat until a condition is met .

3

#This program will keep asking the user to enter a number until the total of the numbers is between 100 and 200

#initialise total to 0
total = 0

#only loop while the total is not between 100 and 200
total < 100 or total 200 :
#ask for a number
number = ( input ( " Please enter a number : " ) )
#add the number to total and display total
total = total +
print ( )

#display an ending message
( " You have escaped ! " )

4

#initialise total to 0
total =

#start a loop for 10 pupils
for in ( 0 , ) :
#input the age of the pupil that we are on
age = ( ( " How old is pupil " + str ( counter + 1 ) + " : " ) )
#add one to the total for every pupil who is 17 and over
if age = 17 :
total = total +

#outputs the total
print ( , " pupil ( s ) are old enough to drive . " )

5

In Python , beginners start with to store , such as numbers or text . You can values using the print function to display results . A simple loop repeats an action , for example counting from 1 to . You should always test your program to ensure it as .

Are you sure you want to leave the page?

If you leave, you will lose the game in progress.