You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _sources/PythonTurtle/OurFirstTurtleProgram.rst
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -218,10 +218,10 @@ screen until we click on it.
218
218
:answer_c: It makes the turtle draw half of a rectangle on the screen.
219
219
:answer_d: Nothing, it is unnecessary.
220
220
:correct: b
221
-
:feedback_a: The line "alex = turtle.Turtle()" is what actually creates the turtle object.
221
+
:feedback_a: The line "alex = turtle.Turtle()" is what actually creates the turtle object.
222
222
:feedback_b: This line imports the module called turtle, which has all the built in functions for drawing on the screen with the Turtle object.
223
-
:feedback_c: This functionality is performed with the lines: "alex.forward(150)", "lex.left(90)", and "alex.forward(75)"
224
-
:feedback_d: If we leave it out, Python will give an error saying that it does not know about the name "turtle" when it reaches the line "wn = turtle.Screen()"
223
+
:feedback_c: This functionality is performed with the lines: "alex.forward(150)", "lex.left(90)", and "alex.forward(75)"
224
+
:feedback_d: If we leave it out, Python will give an error saying that it does not know about the name "turtle" when it reaches the line "wn = turtle.Screen()"
225
225
226
226
Consider the following code:
227
227
@@ -260,11 +260,11 @@ screen until we click on it.
260
260
261
261
.. mchoice:: test_question3_1_4
262
262
:practice: T
263
-
:answer_a: <img src="../_static/test1Alt1.png" alt="right turn of 90 degrees before drawing, draw a line 150 pixels long, turn left 90, and draw a line 75 pixels long">
264
-
:answer_b: <img src="../_static/test1Alt2.png" alt="left turn of 180 degrees before drawing, draw a line 150 pixels long, turn left 90, and draw a line 75 pixels long">
265
-
:answer_c: <img src="../_static/test1Alt3.png" alt="left turn of 270 degrees before drawing, draw a line 150 pixels long, turn left 90, and draw a line 75 pixels long">
266
-
:answer_d: <img src="../_static/test1Alt4v2.png" alt="right turn of 270 degrees before drawing, draw a line 150 pixels long, turn right 90, and draw a line 75 pixels long">
267
-
:answer_e: <img src="../_static/test1correct.png" alt="left turn of 90 degrees before drawing, draw a line 150 pixels long, turn left 90, and draw a line 75 pixels long">
263
+
:answer_a: <img src="../_static/test1Alt1.png" alt="right turn of 90 degrees before drawing, draw a line 150 pixels long, turn left 90, and draw a line 75 pixels long"/>
264
+
:answer_b: <img src="../_static/test1Alt2.png" alt="left turn of 180 degrees before drawing, draw a line 150 pixels long, turn left 90, and draw a line 75 pixels long"/>
265
+
:answer_c: <img src="../_static/test1Alt3.png" alt="left turn of 270 degrees before drawing, draw a line 150 pixels long, turn left 90, and draw a line 75 pixels long">/
266
+
:answer_d: <img src="../_static/test1Alt4v2.png" alt="right turn of 270 degrees before drawing, draw a line 150 pixels long, turn right 90, and draw a line 75 pixels long"/>
267
+
:answer_e: <img src="../_static/test1correct.png" alt="left turn of 90 degrees before drawing, draw a line 150 pixels long, turn left 90, and draw a line 75 pixels long"/>
268
268
:correct: e
269
269
:feedback_a: This code would turn the turtle to the south before drawing
270
270
:feedback_b: This code would turn the turtle to the west before drawing
Copy file name to clipboardExpand all lines: _sources/Selection/BooleanFunctions.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ the boolean expression causes a call to the ``isDivisible`` function. This is v
107
107
:answer_b: No
108
108
:correct: a
109
109
:feedback_a: It is perfectly valid to return the result of evaluating a Boolean expression.
110
-
:feedback_b: x +y < z is a valid Boolean expression, which will evaluate to True or False. It is perfectly legal to return True or False from a function, and to have the statement to be evaluated in the same line as the return keyword.
110
+
:feedback_b: x +y < z is a valid Boolean expression, which will evaluate to True or False. It is perfectly legal to return True or False from a function, and to have the statement to be evaluated in the same line as the return keyword.
111
111
112
112
Is the following statement legal in a Python function (assuming x, y and z are defined to be numbers)?
0 commit comments