diff --git a/_sources/turtles/SE_turtle/pp-intro-SE.rst b/_sources/turtles/SE_turtle/pp-intro-SE.rst index ee96f1ea..3da21b18 100644 --- a/_sources/turtles/SE_turtle/pp-intro-SE.rst +++ b/_sources/turtles/SE_turtle/pp-intro-SE.rst @@ -91,8 +91,8 @@ The clicable area are those with a dark gray background and a border around them You will then receive a completed explanatoin of the solution you got from solving the mixed-up puzzle. -.. image:: https://i.postimg.cc/DvVqXB8F/SE-introduction.png - :width: 450 +.. image:: https://i.postimg.cc/SmDGs7mZ/SE-introduction.png + :width: 600 :align: center Four types of feedback will be provided for each option you select. @@ -150,4 +150,4 @@ What to do next a.href = "pps-SE-pp1.html" }; - + \ No newline at end of file diff --git a/_sources/turtles/SE_turtle/pps-IE-pp1.rst b/_sources/turtles/SE_turtle/pps-IE-pp1.rst index d8caeb68..dc0574cd 100644 --- a/_sources/turtles/SE_turtle/pps-IE-pp1.rst +++ b/_sources/turtles/SE_turtle/pps-IE-pp1.rst @@ -5,7 +5,7 @@ Practice Problems :numbered: left :adaptive: - Create a function called ``create_T`` that takes in ``turtle`` as a parameter and moves the turtle to create the letter T. + Create a function called ``create_T`` that takes in ``turtle_obj`` as a parameter and moves the turtle to create the letter T. The width of the letter should be 100, and the height of the letter should be 150. ----- from turtle import * @@ -30,6 +30,8 @@ Practice Problems turtle_obj.forward(height) +What to do next +^^^^^^^^^^^^^^^ .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-IE-pp2.rst b/_sources/turtles/SE_turtle/pps-IE-pp2.rst index 31b79687..da1502ee 100644 --- a/_sources/turtles/SE_turtle/pps-IE-pp2.rst +++ b/_sources/turtles/SE_turtle/pps-IE-pp2.rst @@ -16,9 +16,12 @@ Practice Problems def create_hexagon(turtle): ===== for i in range(0, 6): - ===== turtle.forward(50) ===== + for i in range(0, 6): + turtle = turtle.forward(50) #paired + ===== + for i in range(0, 7): turtle = turtle.forward(50) #paired ===== turtle.left(60) @@ -27,6 +30,10 @@ Practice Problems ===== create_hexagon(alex) + +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to go to the explanation: Explanation

diff --git a/_sources/turtles/SE_turtle/pps-IE-pp3.rst b/_sources/turtles/SE_turtle/pps-IE-pp3.rst index a1d8c071..db065e81 100644 --- a/_sources/turtles/SE_turtle/pps-IE-pp3.rst +++ b/_sources/turtles/SE_turtle/pps-IE-pp3.rst @@ -31,6 +31,8 @@ Practice Problems draw_triangle(alex, 50, ["blue", "green", "yellow"]) +What to do next +^^^^^^^^^^^^^^^ .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-IE-pp4.rst b/_sources/turtles/SE_turtle/pps-IE-pp4.rst index 8c6a1c54..a24a5935 100644 --- a/_sources/turtles/SE_turtle/pps-IE-pp4.rst +++ b/_sources/turtles/SE_turtle/pps-IE-pp4.rst @@ -33,6 +33,9 @@ Practice Problems create_rectangle(alex) +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-PP-1.rst b/_sources/turtles/SE_turtle/pps-PP-1.rst index 46395a92..effee9b1 100644 --- a/_sources/turtles/SE_turtle/pps-PP-1.rst +++ b/_sources/turtles/SE_turtle/pps-PP-1.rst @@ -5,7 +5,7 @@ Practice Problems :numbered: left :adaptive: - Create a function called ``create_T`` that takes in ``turtle`` as a parameter and moves the turtle to create the letter T. + Create a function called ``create_T`` that takes in ``turtle_obj`` as a parameter and moves the turtle to create the letter T. The width of the letter should be 100, and the height of the letter should be 150. ----- from turtle import * @@ -31,6 +31,9 @@ Practice Problems +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to go to the next puzzle: Mixed-up Puzzle 2

diff --git a/_sources/turtles/SE_turtle/pps-PP-2.rst b/_sources/turtles/SE_turtle/pps-PP-2.rst index de6c74ac..f21d46a3 100644 --- a/_sources/turtles/SE_turtle/pps-PP-2.rst +++ b/_sources/turtles/SE_turtle/pps-PP-2.rst @@ -13,22 +13,29 @@ Practice Problems space = Screen() alex = Turtle() ===== - def create_hexagon(turtle_obj): + def create_hexagon(turtle): ===== for i in range(0, 6): + turtle.forward(50) ===== - for i in range(0, 7): #paired + for i in range(0, 6): + turtle = turtle.forward(50) #paired ===== - turtle_obj.forward(50) + for i in range(0, 7): + turtle = turtle.forward(50) #paired ===== - turtle_obj = turtle_obj.forward(50) #paired + turtle.left(60) ===== - turtle_obj.left(60) + turtle = turtle.left(60) #paired ===== create_hexagon(alex) +What to do next +^^^^^^^^^^^^^^^ + + .. raw:: html

Click on the following link to go to the explanation question: Mixed-up Puzzle 3

diff --git a/_sources/turtles/SE_turtle/pps-PP-3.rst b/_sources/turtles/SE_turtle/pps-PP-3.rst index 2c900f07..964ab3ad 100644 --- a/_sources/turtles/SE_turtle/pps-PP-3.rst +++ b/_sources/turtles/SE_turtle/pps-PP-3.rst @@ -31,6 +31,8 @@ Practice Problems draw_triangle(alex, 50, ["blue", "green", "yellow"]) +What to do next +^^^^^^^^^^^^^^^ .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-PP-4.rst b/_sources/turtles/SE_turtle/pps-PP-4.rst index de41c4ab..77e51216 100644 --- a/_sources/turtles/SE_turtle/pps-PP-4.rst +++ b/_sources/turtles/SE_turtle/pps-PP-4.rst @@ -33,6 +33,8 @@ Practice Problems create_rectangle(alex) +What to do next +^^^^^^^^^^^^^^^ .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-SE-pp1.rst b/_sources/turtles/SE_turtle/pps-SE-pp1.rst index 35ab9bcd..94e715ba 100644 --- a/_sources/turtles/SE_turtle/pps-SE-pp1.rst +++ b/_sources/turtles/SE_turtle/pps-SE-pp1.rst @@ -5,7 +5,7 @@ Practice Problems :numbered: left :adaptive: - Create a function called ``create_T`` that takes in ``turtle`` as a parameter and moves the turtle to create the letter T. + Create a function called ``create_T`` that takes in ``turtle_obj`` as a parameter and moves the turtle to create the letter T. The width of the letter should be 100, and the height of the letter should be 150. ----- from turtle import * @@ -30,7 +30,8 @@ Practice Problems turtle_obj.forward(height) - +What to do next +^^^^^^^^^^^^^^^ .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-SE-pp2.rst b/_sources/turtles/SE_turtle/pps-SE-pp2.rst index 3349449d..5f380b08 100644 --- a/_sources/turtles/SE_turtle/pps-SE-pp2.rst +++ b/_sources/turtles/SE_turtle/pps-SE-pp2.rst @@ -16,9 +16,12 @@ Practice Problems def create_hexagon(turtle): ===== for i in range(0, 6): - ===== turtle.forward(50) ===== + for i in range(0, 6): + turtle = turtle.forward(50) #paired + ===== + for i in range(0, 7): turtle = turtle.forward(50) #paired ===== turtle.left(60) @@ -27,6 +30,11 @@ Practice Problems ===== create_hexagon(alex) + + +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to go to the explanation question: Explanation Question

diff --git a/_sources/turtles/SE_turtle/pps-SE-pp3.rst b/_sources/turtles/SE_turtle/pps-SE-pp3.rst index 51ee4420..86552135 100644 --- a/_sources/turtles/SE_turtle/pps-SE-pp3.rst +++ b/_sources/turtles/SE_turtle/pps-SE-pp3.rst @@ -31,6 +31,8 @@ Practice Problems draw_triangle(alex, 50, ["blue", "green", "yellow"]) +What to do next +^^^^^^^^^^^^^^^ .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-SE-pp4.rst b/_sources/turtles/SE_turtle/pps-SE-pp4.rst index 15e02e40..7815368e 100644 --- a/_sources/turtles/SE_turtle/pps-SE-pp4.rst +++ b/_sources/turtles/SE_turtle/pps-SE-pp4.rst @@ -34,6 +34,9 @@ Practice Problems +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to go to the explanation question: Explanation Question

diff --git a/_sources/turtles/SE_turtle/pps-ie1.rst b/_sources/turtles/SE_turtle/pps-ie1.rst index e289719f..617c456b 100644 --- a/_sources/turtles/SE_turtle/pps-ie1.rst +++ b/_sources/turtles/SE_turtle/pps-ie1.rst @@ -22,7 +22,7 @@ Here is an explanation for the completed puzzle (5) turtle_obj.penup() -- Lift Pen Use .penup() to lift the turtle's pen to move it without drawing. (6) turtle_obj.goto(-width / 2, height / 2) -- Move to Start Position - Moves the turtle to the starting position at the top-left part of the T. + Moves the turtle to the starting position at the top-left part of the T, which is the point (-50, 75). -width / 2: Moves the turtle half the width to the left of the origin (center of the screen). This ensures the horizontal line of the T is centered horizontally. This ensures the horizontal line of the T is centered horizontally. height / 2: Moves the turtle to half the height upwards from the origin. @@ -40,6 +40,10 @@ Here is an explanation for the completed puzzle (11) turtle_obj.forward(height) -- Draw Vertical Line Moves the turtle forward by the value of height to draw the vertical line of the T. + +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to finish the next puzzle: Mixed-up Puzzle 2

diff --git a/_sources/turtles/SE_turtle/pps-ie2.rst b/_sources/turtles/SE_turtle/pps-ie2.rst index 22f6f3b3..3669dea3 100644 --- a/_sources/turtles/SE_turtle/pps-ie2.rst +++ b/_sources/turtles/SE_turtle/pps-ie2.rst @@ -32,6 +32,9 @@ Here is an explanation for the completed puzzle (8) create_hexagon(alex) -- Call Hexagon Function Calls the create_hexagon function, passing the Turtle object alex as an argument. This initiates the drawing of the hexagon. +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-ie3.rst b/_sources/turtles/SE_turtle/pps-ie3.rst index 000b38f8..bdee7d84 100644 --- a/_sources/turtles/SE_turtle/pps-ie3.rst +++ b/_sources/turtles/SE_turtle/pps-ie3.rst @@ -35,6 +35,9 @@ Here is an explanation for the completed puzzle Calls the draw_triangle function with the specified turtle object, side length, and list of colors to draw an equilateral triangle. +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to finish the next puzzle: Mixed-up Puzzle 4

diff --git a/_sources/turtles/SE_turtle/pps-ie4.rst b/_sources/turtles/SE_turtle/pps-ie4.rst index 7a49ae3f..5a4ba98c 100644 --- a/_sources/turtles/SE_turtle/pps-ie4.rst +++ b/_sources/turtles/SE_turtle/pps-ie4.rst @@ -36,6 +36,8 @@ Here is an explanation for the completed puzzle Calls the create_rectangle function after creating it with the specified turtle object alex to draw a rectangle. +What to do next +^^^^^^^^^^^^^^^ .. raw:: html diff --git a/_sources/turtles/SE_turtle/pps-posttest.rst b/_sources/turtles/SE_turtle/pps-posttest.rst index 3b8f5e3a..ea79e395 100644 --- a/_sources/turtles/SE_turtle/pps-posttest.rst +++ b/_sources/turtles/SE_turtle/pps-posttest.rst @@ -3,12 +3,18 @@ Turtle Posttest Problem * 💻 Please complete the problems below independently without any outside help, including AI tools like ChatGPT. +* There is no feedback for this posttest. You will see the correct answers after the lecture on Thursday. + * Again, you can stop working on a problem after you worked on it for about two minutes without solving it. +One correct option MCQ +^^^^^^^^^^^^^^^^^^^^^^ + + .. poll:: SE_posttest_mcq_1 :option_1: In the turtle module, the method penup() is used to resume drawing when the turtle moves. - :option_2: In the turtle module, the method penup() is used to chance the thickness of the pen. + :option_2: In the turtle module, the method penup() is used to change the thickness of the pen. :option_3: In the turtle module, the method pendown() is used to resume drawing when the turtle moves. :option_4: In the turtle module, the method pendown() and penup() both control the turtle's speed. @@ -18,13 +24,12 @@ Turtle Posttest Problem .. poll:: SE_posttest_mcq_2 :option_1: color() sets the pen color but does not affect the background color. :option_2: color() sets the pen color and the background color of the drawing window. - :option_3: color() changes the pen color and fill color, but not the background color. + :option_3: color() changes the pen color and pen size, but not the background color. :option_4: color() affects the fill color and background color, but not the pen color. One correct option MCQ: Which of the following statements is true regarding the color() method in Python turtle module? - .. poll:: SE_posttest_mcq_3 :option_1: Turtle is a variable, and alex is an object of the class. :option_2: Turtle is a class, and alex is a variable used to an object of the Turtle class. @@ -48,6 +53,7 @@ Turtle Posttest Problem for i in range(1, 7): + .. poll:: SE_posttest_mcq_5 :option_1: A :option_2: B @@ -56,67 +62,68 @@ Turtle Posttest Problem One correct option MCQ: What is the output of the following code snippet?
- .. image:: https://i.postimg.cc/7hH8VnGx/SE-posttest-mcq-5.png + -.. mchoice:: SE_posttest_mcq_6 - :multiple_answers: +Fill in all that apply +^^^^^^^^^^^^^^^^^^^^^^ - Select all that apply: Which of the following statements are true regarding the differences and similarities between the two loops? +.. fillintheblank:: SE_posttest_mcq_6 + :practice: F - .. image:: https://i.postimg.cc/4yCs9L3h/SE-posttest-mcq-6.png + **Enter the correct letter(s) in the blanks. More than one answer may be correct.** + + Which of the following statements are true regarding the differences and similarities between the two loops? Fill in all that apply. - - The ``for i in range(5)`` loop iterates a fixed number of times, specifically 5 times. + .. image:: https://i.postimg.cc/4yCs9L3h/SE-posttest-mcq-6.png + :width: 600 + :align: center - + Thank you for answering the question. + **A.** The ``for i in range(5)`` loop iterates a fixed number of times, specifically 5 times. - - The ``for item in item_list`` loop modifies the original list elements during iteration. - - + Thank you for answering the question. + **B.** The ``for item in item_list`` loop modifies the original list elements during iteration. - - Both loops can be used to iterate over a sequence of numbers. - - + Thank you for answering the question. - - - Both code snippets will print out the same sequence of numbers. + **C.** Both loops can be used to iterate over a sequence of numbers. + + **D.** Both code snippets will print out the same sequence of numbers. - + Thank you for answering the question. + - :[\s\S]+: Thank you for answering the question. + :.*: Please fill in the blank -.. mchoice:: SE_posttest_mcq_7 - :multiple_answers: +.. fillintheblank:: SE_posttest_mcq_7 + :practice: F - Select all that apply: The following code snippet produces one or more errors. + **Enter the correct letter(s) in the blanks. More than one answer may be correct.** + The following code snippet produces one or more errors. Fill in all that apply. + ``from turtle import all`` ``Turtle()`` ``t = t.color("blue")`` - - The turtle module is not imported correctly. - - + Thank you for answering the question. + **A.** The turtle module is not imported correctly. + + **B.** In this case, Turtle() needs to be assigned to a variable. + + **C.** The color method does not exist. + + **D.** The t.color() method should not be used with an argument, such as "blue". - - In this case, Turtle() needs to be assigned to a variable. + - :[\s\S]+: Thank you for answering the question. + :.*: Please fill in the blank - + Thank you for answering the question. - - The color method does not exist. +.. fillintheblank:: SE_posttest_mcq_8 + :practice: F - + Thank you for answering the question. + **Enter the correct letter(s) in the blanks. More than one answer may be correct.** - - The t.color() method should not be used with an argument, such as "blue". - - + Thank you for answering the question. - - - -.. mchoice:: SE_posttest_mcq_8 - :multiple_answers: + Which of the following statements are true regarding the ``t.left(90)`` line in the code? Fill in all that apply. - **Select all that apply:** Which of the following statements are true regarding the ``t.left(90)`` line in the code? ``import turtle`` @@ -125,51 +132,33 @@ Turtle Posttest Problem ``t.left(90)`` - - The turtle turns 90 degrees to the right. + **A.** The turtle turns 90 degrees to the right. - + Thank you for answering the question. + **B.** The turtle turns 90 degrees to the left. - - The turtle turns 90 degrees to the left. - - + Thank you for answering the question. - - - The turtle makes a circle. - - + Thank you for answering the question. - - - The turtle's orientation changes, but it doesn't move from its current position. - - + Thank you for answering the question. - - - The turtle turns 180 degrees to the left. - - + Thank you for answering the question. - - - - -.. mchoice:: SE_posttest_mcq_9 - :multiple_answers: - - **Select all that apply:** All code statements that will draw a **rectangle** using the turtle module in Python: + **C.** The turtle makes a circle. - .. image:: https://i.postimg.cc/s2LcjYCT/SE-posttest-mcq-9.png + **D.** The turtle's orientation changes, but it doesn't move from its current position. - - A + **E.** The turtle moves 90 units to the left. - + Thank you for answering the question. + - :[\s\S]+: Thank you for answering the question. + :.*: Please fill in the blank - - B - + Thank you for answering the question. +.. fillintheblank:: SE_posttest_mcq_9 + :practice: F - - C - - + Thank you for answering the question. - - - D + **Enter the correct letter(s) in the blanks. More than one answer may be correct.** + + All code statements that will draw **rectangle** using the turtle module in Python: Fill in all that apply. + + .. image:: https://i.postimg.cc/09F4kV6x/SE-posttest-mcq-9.png + :width: 800 + :align: center - + Thank you for answering the question. + - :[\s\S]+: Thank you for answering the question. + :.*: Please fill in the blank @@ -180,6 +169,7 @@ Turtle Posttest Problem ``t.goto(100, 100)`` + Turtle Reflective Survey ^^^^^^^^^^^^^^^^^^^^^^^^ @@ -197,9 +187,9 @@ Turtle Reflective Survey :option_5: Strongly Agree For each statement, please use the following scale to indicate what is most true for you. Explain the reason for your choice in the comment box below. +
+ This practice was useful in improving my problem-solving skill on this topic, e.g. finding the strategy to draw an expected shape using a turtle module. - This practice was useful in improving my **problem-solving skill on this topic**, e.g. finding the strategy to draw a expected shape. - .. poll:: SE_reflect_2 :allowcomment: @@ -210,11 +200,10 @@ Turtle Reflective Survey :option_5: Strongly Agree For each statement, please use the following scale to indicate what is most true for you. Explain the reason for your choice in the comment box below. - - This practice was useful in improving my **understanding of this topic**, e.g. what does different turtle method and for loop do, etc. +
+ This practice was useful in improving my understanding of this topic, e.g. what does different turtle method and for loop do, etc. - .. shortanswer:: SE_opinion What did you think of this practice session? Please provide any feedback or suggestions for improvement. diff --git a/_sources/turtles/SE_turtle/pps-ppe1.rst b/_sources/turtles/SE_turtle/pps-ppe1.rst index 64a7b8fd..8eb9b84e 100644 --- a/_sources/turtles/SE_turtle/pps-ppe1.rst +++ b/_sources/turtles/SE_turtle/pps-ppe1.rst @@ -3,7 +3,7 @@ :question: Complete this section to get an explanation for the previous puzzle :prim_comp: ASSIGNMENT :iscode: - :feedback: (1) Think about how to import all functions from the Turtle graphics library. (5) Think about what .penup() does. (6) Think about the meaning of - in the context of moving the turtle. (7) Think about the purpose of .pendown() function. (8) Think about the purpose of the .forward() function. (9) Think about the output of the / operation in a division between two numbers. (10) Think about the purpose of the .right() function. + :feedback: (1) Think about how to import all functions from the Turtle graphics library. (5) Think about what .penup() does. (6) Think about the meaning of negative and postive value in the context of goto a position. (7) Think about the purpose of .pendown() function. (8) Think about the purpose of the .forward() function. (9) Think about the output of the / operation in a division between two numbers. (10) Think about the purpose of the .right() function. @@ -19,10 +19,10 @@ (5) turtle_obj.penup() -- Lift Pen Use .penup() to [:click-incorrect:lower:endclick: / :click-correct:lift:endclick:] the turtle's pen to move it without drawing. (6) turtle_obj.goto(-width / 2, height / 2) -- Move to Start Position - Moves the turtle to the starting position at the top-left part of the T. + Moves the turtle to the starting position at the top-left part of the T, which is the point (-50, 75). -width / 2: Moves the turtle half the width to the [:click-incorrect:right:endclick: / :click-correct:left:endclick:] of the origin (center of the screen). This ensures the horizontal line of the T is centered horizontally. - height / 2: Moves the turtle to half the height upwards from the origin. + height / 2: Moves the turtle to half the height [:click-incorrect:downwards:endclick: / :click-correct:upwards:endclick:] from the origin. This places the turtle at the highest point needed to start drawing the letter T. The goto function thus moves the turtle to the point (-50, 75), which is the left end of the top horizontal line of the T. (7) turtle_obj.pendown() -- Lower Pen @@ -38,6 +38,10 @@ (11) turtle_obj.forward(height) -- Draw Vertical Line Moves the turtle forward by the value of height to draw the vertical line of the T. + +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to finish the next puzzle: Mixed-up Puzzle 2

diff --git a/_sources/turtles/SE_turtle/pps-ppe2.rst b/_sources/turtles/SE_turtle/pps-ppe2.rst index 387c8d45..fdc6ebc1 100644 --- a/_sources/turtles/SE_turtle/pps-ppe2.rst +++ b/_sources/turtles/SE_turtle/pps-ppe2.rst @@ -3,7 +3,7 @@ :question: Complete this section to get an explanation for the previous puzzle :prim_comp: ASSIGNMENT :iscode: - :feedback: (1) Think about how to import all functions from the Turtle graphics library. (3) Think about the type of alex in the function call. Think about the type of Turtle() from the turtle module. (5) Think about the loop range by start and stop values. (6) Think about the purpose of the left() function. + :feedback: (1) Think about how to import all functions from the Turtle graphics library. (3) Think about the type of alex in the function call. Think about the type of Turtle() from the turtle module. (5) Think about the loop range by start and stop values. (7) Think about the purpose of the left() function. Here is a completed function: @@ -29,6 +29,10 @@ Calls the create_hexagon function, passing the Turtle object alex as an argument. This initiates the drawing of the hexagon. + +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to finish the next puzzle: Mixed-up Puzzle 3

diff --git a/_sources/turtles/SE_turtle/pps-ppe3.rst b/_sources/turtles/SE_turtle/pps-ppe3.rst index 42e6921a..ed891b91 100644 --- a/_sources/turtles/SE_turtle/pps-ppe3.rst +++ b/_sources/turtles/SE_turtle/pps-ppe3.rst @@ -33,6 +33,9 @@ Calls the draw_triangle function with the specified turtle object, side length, and list of colors to draw an equilateral triangle. +What to do next +^^^^^^^^^^^^^^^ + .. raw:: html

Click on the following link to finish the next puzzle: Mixed-up Puzzle 4

diff --git a/_sources/turtles/SE_turtle/pps-ppe4.rst b/_sources/turtles/SE_turtle/pps-ppe4.rst index 80319437..f74dcf89 100644 --- a/_sources/turtles/SE_turtle/pps-ppe4.rst +++ b/_sources/turtles/SE_turtle/pps-ppe4.rst @@ -3,7 +3,7 @@ :question: Complete this section to get an explanation for the previous puzzle :prim_comp: ASSIGNMENT :iscode: - :feedback: (5) Think about the type of loop and how it works. (6) Think about the meaning of .forward(). (9) Think about the last action of each iteration. (12) Think about the correct sequence to call the function to draw a rectangle. + :feedback: (5) Think about the type of loop and how it works. (6) Think about the meaning of .forward(). (9) Think about the last action of each iteration. (10) Think about the correct sequence to call the function to draw a rectangle. Here is a completed function: @@ -21,7 +21,7 @@ Defines a function named create_rectangle that takes a single parameter turtle, which is expected to be a Turtle object. (5) for i in range(2): -- Loop Through Iterations Starts a [:click-correct:for:endclick: / :click-incorrect:while:endclick:] loop that will iterate [:click-incorrect:fourth:endclick: / :click-correct:twice:endclick:]. - Each iteration draws [:click-correct:two:endclick: / :click-incorrect:one:endclick:] sides of the rectangle. + Each iteration draws [:click-correct:two sides:endclick: / :click-incorrect:one side:endclick:] of the rectangle. (6) turtle.forward(40) -- Draw Width of Rectangle Moves the turtle [:click-correct:forward:endclick: / :click-incorrect:backward:endclick:] by 40 units to draw one of the shorter sides of the rectangle (width). (7) turtle.left(90) -- Turn 90 Degrees Left @@ -35,6 +35,8 @@ Calls the create_rectangle function [:click-correct:after:endclick: / :click-incorrect:before:endclick:] creating it with the specified turtle object alex to draw a rectangle. +What to do next +^^^^^^^^^^^^^^^ .. raw:: html