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: en/_sources/simple_drawing.txt
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,10 @@ until you click on it::
62
62
63
63
turtle.exitonclick()
64
64
65
+
.. note::
66
+
67
+
Python is a programming language where horizontal indenting of text is important. We'll learn all about this in the Functions chapter later on, but for now just keep in mind that stray spaces or tabs before any line of Python code will cause an unexpected error.
68
+
65
69
Drawing a square
66
70
================
67
71
@@ -107,7 +111,15 @@ Python shell. If there is a lot of text, Python will put the help text
107
111
into a *pager*, which lets you page up and down. Press the :kbd:`q`
108
112
key to exit the pager.
109
113
110
-
Alternatively, browse the `online documentation`__.
114
+
.. tip::
115
+
116
+
Are you seeing an error like this::
117
+
118
+
NameError: name 'turtle' is not defined``
119
+
120
+
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.
121
+
122
+
Another way to find out about functions is to browse the `online documentation`__.
0 commit comments