Extend it:
For this challenge you will need to define and call some of your own procedures or functions that use parameters
Challenges:
- Define your own sub program with 1 parameter
Hint: Use
def
to define your sub program. It can be a procedure or function - Define your own sub program with 2 parameters
Hint: In a sub program definition, the parameters need to be surrounded by brackets and separated by commas
- Define your own sub program with 3 parameters
Hint: Hopefully you can think of a creative use for your sub program (e.g. draw
Page 1: Intro
Page 2: The theory: learn what you need to know as fast as possible.
Page 3: Try it: try out and adapt some working python code snippets.
Page 4: Debug it: Learn how to find and fix common mistakes.
Page 5: Extend it: Choose a project idea to use your newfound python skills.