Learning Objective: Understand how to use and call functions in programming using Python

Starter:
Go to Lightbot
Play Level 2 'Procedures' section
What does a procedure in lightbot do?
How might this be useful in your code?

Main:
Red Task
Choose worksheet 1 or 2
You can copy the code below to save time:

def pullRabbit():
    print ("    ,__           ")
    print ("   / /^\  ,____   ")
    print ("   \_), ^^  _, \  ")
    print ("      / @ @ \(_/  ")
    print ("  ___{_-.x.-_}__  ")
    print ("(_______________) ")
    print ("     |       |    ")
    print ("     |       |    ")
    print ("     |       |    ")
    print ("     |       |    ")
    print ("     |_______|    ")


Amber Task
Take a screen shot of your code working and place in your evidence document.
Annotate the code to show your understanding. 

Green Task
Complete worksheet 3 and take a screenshot for your evidence document. Annotate this too.

Extension:
Use the hash symbol to comment in your code

Plenary:
What is a function?
Why would we use it in our programs?

Comments

Popular posts from this blog

10n2

10n2