summaryrefslogtreecommitdiff
path: root/examples/dictExample2.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@users.noreply.github.com>2018-12-23 21:30:40 -0600
committerGitHub <noreply@github.com>2018-12-23 21:30:40 -0600
commit4fba64a079016e6ea62d041f19b7eadd081341e8 (patch)
tree6c5fdae41cf8b335ff1c64f37856786523e4fd0d /examples/dictExample2.py
parent59dfd314c23fd653271bdad37631f0497e8ad748 (diff)
parentde8326d00dffdb500c02839a98330b869c2457f3 (diff)
downloadpyparsing-git-4fba64a079016e6ea62d041f19b7eadd081341e8.tar.gz
Merge pull request #55 from jdufresne/ws
Trim trailing white space throughout the project
Diffstat (limited to 'examples/dictExample2.py')
-rw-r--r--examples/dictExample2.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/dictExample2.py b/examples/dictExample2.py
index cae463b..0f243d3 100644
--- a/examples/dictExample2.py
+++ b/examples/dictExample2.py
@@ -44,9 +44,9 @@ print("sum(data['min']) =", sum(data['min']))
print("data.max =", data.max)
print("sum(data.max) =", sum(data.max))
-# now print transpose of data table, using column labels read from table header and
+# now print transpose of data table, using column labels read from table header and
# values from data lists
-print()
+print()
print(" " * 5, end=' ')
for i in range(1,len(data)):
print("|%5s" % data[i][0], end=' ')
@@ -56,4 +56,4 @@ for i in range(len(data.columns)):
print("%5s" % data.columns[i], end=' ')
for j in range(len(data) - 1):
print('|%5s' % data[j + 1][i + 1], end=' ')
- print()
+ print()