Skip to content

Commit 33d9840

Browse files
committed
one_liners: PEP8 and text syntax
Make sure to follow PEP8 everywhere.
1 parent 7954a08 commit 33d9840

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

one_liners.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ repl. Here is the relevant code:
2828
2929
from pprint import pprint
3030
31-
my_dict = {'name':'Yasoob',
32-
'age':'undefined','personality':'awesome'}
31+
my_dict = {'name': 'Yasoob', 'age': 'undefined', 'personality': 'awesome'}
3332
pprint(my_dict)
3433
3534
This is more effective on dicts. Moreover, if you want to pretty print
@@ -74,4 +73,4 @@ is a simple example:
7473
# Output: [1, 2, 3, 4, 5, 6]
7574
7675
A couple of more one liners can be found on the `Python
77-
website <https://wiki.python.org/moin/Powerful%20Python%20One-Liners>`__
76+
website <https://wiki.python.org/moin/Powerful%20Python%20One-Liners>`__.

0 commit comments

Comments
 (0)