Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6642c59

Browse files
Update readme.md
1 parent ff32920 commit 6642c59

File tree

1 file changed

+2
-3
lines changed
  • Python Projects/Intermediate Games/SketchBook

1 file changed

+2
-3
lines changed

‎Python Projects/Intermediate Games/SketchBook/readme.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The code starts by importing the necessary libraries `Turtle` and `Screen` from
2121
Two objects are created, `orbit` and `window`, using the `Turtle()` and `Screen()` functions respectively. The orbit object is assigned to the `turtle`, and the window object is assigned to the `window`.
2222

2323
```python
24-
orbit.pensize(10)
24+
orbit.pensize(10)
2525
orbit.pencolor("red")
2626
orbit.shape("turtle")
2727
```
@@ -34,7 +34,7 @@ Several properties of the turtle object are set using the following lines of cod
3434
- `orbit.shape("turtle")` sets the shape of the turtle to the default turtle shape.
3535

3636
```python
37-
def move_forward():
37+
def move_forward():
3838
orbit.forward(10)
3939

4040
def move_backward():
@@ -76,7 +76,6 @@ window.onkey(move_backward,"s")
7676
window.onkey(move_left,"a")
7777
window.onkey(move_right,"d")
7878
window.onkey(clear,"c")
79-
window.exitonclick()
8079
```
8180
6. **Setting up Event Listener**
8281

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /