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
2b48f949
Commit
2b48f949
authored
Sep 30, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1567375: a minor logical glitch in example description.
(backport from rev. 52053)
parent
6fed7937
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Doc/tut/tut.tex
Doc/tut/tut.tex
+4
-2
No files found.
Doc/tut/tut.tex
View file @
2b48f949
...
...
@@ -3060,6 +3060,7 @@ Here are two ways to write a table of squares and cubes:
8
64
512
9
81
729
10
100
1000
>>> for x in range
(
1
,
11
)
:
... print '
%2d %3d %4d' % (x, x*x, x*x*x)
...
...
...
@@ -3075,8 +3076,9 @@ Here are two ways to write a table of squares and cubes:
10
100
1000
\end
{
verbatim
}
(
Note that one space between each column was added by the way
\keyword
{
print
}
works: it always adds spaces between its arguments.
)
(
Note that in the first example, one space between each column was
added by the way
\keyword
{
print
}
works: it always adds spaces between
its arguments.
)
This example demonstrates the
\method
{
rjust
()
}
method of string objects,
which right
-
justifies a string in a field of a given width by padding
...
...
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