0 10 20 30 40 50 60 70 80 90 100 83223 0
You are not logged in

Welcome to type with code

Start typing or press to get going!

The python code you'll be racing to type out is all about:

Create and use a procedure with parameters

A procedure is a section of code that has a name, that you can re-use to do something useful.

Parameters are variables that allow you to send data to the procedure to customise what it does or how it works. 

A procedure definition is the code that tells the computer what to do whenever that procedure runs. The parameters are the variables named in brackets after the procedure name.

The procedure wont actually do anything until you call it.

This example defines a procedure which will display a random number. It has two parameters which allow you to set the minimum and maximum number the random number will be between.  

This procedure is called to show a random number between 10 and 20 and then called again to choose a random number between 50 and 100.