6. Procedures again

We have already created procedures. Now to create procedures that we can pass data to.

6.1. Big Question

  • How can I pass data to a procedure?

6.2. Key words

  • Procedures
  • Parameters

6.3. Introduction

So far we have procedures like draw_square(). However we have seen procedures such as turtle.forward(100), so how do we make it so that we can pass data in such as the 100 above. Read on to find out.

6.4. Procedures 1

Let us look at some code from before

Now let us improve it.

«Someone should write this.»

Next Section - 7. Writing your own programs using IDLE