Skip to content

Commit 3096976

Browse files
committed
Fixed up line lengths
1 parent 39dd5cd commit 3096976

2 files changed

Lines changed: 23 additions & 15 deletions

File tree

‎source/getting_started.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ learn is how to use and interact with it. There are in fact many ways to do this
7676
the first one to learn is to interact with python's interpreter,
7777
using your **operating system's** (OS) console.
7878

79-
A **console** (or 'terminal', or 'command prompt') is a *textual* way to interact with
80-
your OS, just as the 'desktop', in conjuction with your mouse, is the *graphical*
81-
way to interact your system.
79+
A **console** (or 'terminal', or 'command prompt') is a *textual* way to
80+
interact with your OS, just as the 'desktop', in conjuction with your mouse,
81+
is the *graphical* way to interact your system.
8282

8383
Opening a console on Mac OS X
8484
-----------------------------

‎source/simple_drawing.rst‎

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ required to make it work from files. Just go to your terminal and type::
1919

2020
.. note::
2121

22-
Not seeing anything on Mac OS? Try issuing a command like ``turtle.forward(0)`` and looking if a new window opened behind your command line.
22+
Not seeing anything on Mac OS? Try issuing a command like
23+
``turtle.forward(0)`` and looking if a new window opened behind your
24+
command line.
2325

2426
.. note::
2527

@@ -29,7 +31,10 @@ required to make it work from files. Just go to your terminal and type::
2931

3032
.. note::
3133

32-
While it might be tempting to just copy and paste what's written on this page into your terminal, we encourage you to type out each command. Typing gets the syntax under your fingers (building that muscle memory!) and can even help avoid strange syntax errors.
34+
While it might be tempting to just copy and paste what's written on
35+
this page into your terminal, we encourage you to type out each command.
36+
Typing gets the syntax under your fingers (building that muscle memory!)
37+
and can even help avoid strange syntax errors.
3338

3439
::
3540

@@ -45,12 +50,14 @@ required to make it work from files. Just go to your terminal and type::
4550

4651

4752
The ``turtle.forward(...)`` function tells the turtle to move forward
48-
by the given distance. ``turtle.left(...)`` takes a number of degrees which you want
49-
to rotate to the left. (There are ``turtle.backward(...)`` and
50-
``turtle.right(...)``, too.)
53+
by the given distance. ``turtle.left(...)`` takes a number of degrees which you
54+
want to rotate to the left. There is also ``turtle.backward(...)`` and
55+
``turtle.right(...)``, too.
5156

5257
.. note::
53-
Want to start fresh? You can type ``turtle.reset()`` to clear the drawing that your ``turtle`` has made so far. We'll go into more detail on ``turtle.reset()`` in just a bit.
58+
Want to start fresh? You can type ``turtle.reset()`` to clear the drawing
59+
that your ``turtle`` has made so far. We'll go into more detail on
60+
``turtle.reset()`` in just a bit.
5461

5562
The standard turtle is just a triangle. That's no fun! Let's make it a turtle
5663
instead with the ``turtle.shape()`` command::
@@ -76,10 +83,10 @@ until you click on it::
7683

7784
.. note::
7885

79-
Python is a programming language where horizontal indenting of text is
80-
important. We'll learn all about this in the Functions chapter later on,
81-
but for now just keep in mind that stray spaces or tabs before any line
82-
of Python code will cause an unexpected error.
86+
Python is a programming language where horizontal indenting of text is
87+
important. We'll learn all about this in the Functions chapter later on,
88+
but for now just keep in mind that stray spaces or tabs before any line
89+
of Python code can cause an unexpected error.
8390

8491
Drawing a square
8592
================
@@ -142,7 +149,9 @@ key to exit the pager.
142149

143150
NameError: name 'turtle' is not defined
144151

145-
when trying to view help? In Python you have to import names before you can refer to them, so in a new Python interactive shell you'll need to ``import turtle`` before ``help(turtle.color)`` will work.
152+
when trying to view help? In Python you have to import names before you
153+
can refer to them, so in a new Python interactive shell you'll need to
154+
``import turtle`` before ``help(turtle.color)`` will work.
146155

147156
Another way to find out about functions is to browse the `online documentation`_.
148157

@@ -246,4 +255,3 @@ Solution
246255
turtle.forward(50)
247256
turtle.left(90)
248257

249-

0 commit comments

Comments
 (0)