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:: htmlClick 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:: htmlClick 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:: htmlClick 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:: htmlClick 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:: htmlClick 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:: htmlClick 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 methodpenup()
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?
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:: htmlClick 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:: htmlClick 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