Skip to content

Commit 2c1577c

Browse files
committed
Tweak a codeblock
1 parent f0ab54a commit 2c1577c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/templates/codeblocks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,15 @@ def collections_instantiations():
457457
"""
458458
my_list = [1, 2, 3, 4]
459459
my_tuple = (1, 2, 3)
460-
my_tuple_single_item = (1,)
460+
my_tuple_single_item = (1,) # note the comma here!
461461
my_dictionary = {'key': 'value', 1: 2}
462462
my_set = {1, 2}
463463
my_big_list = [
464-
'lorem ipsum',
465-
123456,
466-
'foo bar baz',
467-
7890
468-
]
464+
'lorem ipsum',
465+
123456,
466+
'foo bar baz',
467+
7890
468+
]
469469
print(my_list, my_tuple, my_tuple_single_item)
470470
print(my_set, my_dictionary)
471471
print(my_big_list)

0 commit comments

Comments
 (0)