Extend it:
For this challenge you will need to define and call some of your own functions
Challenges:
- Define a new procedure called
draw_square
Hint: Defining a procedure means telling python how to do something useful by giving a section of code a name. Use
def
to define your procedure - Define a procedure called
draw_triangle
Hint: You will have to rotate by 120 degrees and draw a line three times to draw a triangle
- Call
draw_square
at least once
Hint: Calling a procedure means telling python to actually run that named section of code. You need the name of the procedure followed by some brackets.
- Call
draw_triangle
at least once
Hint: Calling a procedure means telling python to actually run that named section of code. You need the name of the procedure followed by some brackets.
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.
[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]