Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
23d45f47
Commit
23d45f47
authored
Dec 20, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up some examples in the tutorial so we don't contradict our own
advice on docstrings. This fixes SF bug #495601.
parent
6bc62c49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/tut/tut.tex
Doc/tut/tut.tex
+2
-2
No files found.
Doc/tut/tut.tex
View file @
23d45f47
...
...
@@ -1228,7 +1228,7 @@ arbitrary boundary:
\begin{verbatim}
>>> def fib(n): # write Fibonacci series up to n
... "
Print a Fibonacci series up to n
"
... "
""Print a Fibonacci series up to n.""
"
... a, b = 0, 1
... while b < n:
... print b,
...
...
@@ -1306,7 +1306,7 @@ the Fibonacci series, instead of printing it:
\begin{verbatim}
>>> def fib2(n): # return Fibonacci series up to n
... "
Return a list containing the Fibonacci series up to n
"
... "
""Return a list containing the Fibonacci series up to n.""
"
... result = []
... a, b = 0, 1
... while b < n:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment