Skip to content

Commit 2621113

Browse files
committed
adding trailing curly bracket in print statement
1 parent 479d947 commit 2621113

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

first_script.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@
361361
print("Output #118: {!s}".format(a_dict.get('four', 'Not in dict')))
362362

363363
# Use sorted() to sort a dictionary
364-
# To sort a dictionary without changing the original dictionary,
364+
# To sort a dictionary without changing the original dictionary,
365365
# make a copy first
366366
print("Output #119: " + str(a_dict)
367367
dict_copy = a_dict.copy()
@@ -389,7 +389,7 @@
389389
print("Output #127: {}".format(x*x))
390390
else:
391391
print("Output #128: x is not greater than 4")
392-
392+
393393
# for loop
394394
y = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', \
395395
'Nov', 'Dec']
@@ -398,7 +398,7 @@
398398

399399
print("Output #129:")
400400
for month in y:
401-
print("{!s".format(month))
401+
print("{!s}".format(month))
402402

403403
print("Output #130: (index value: name in list)")
404404
for i in range(len(z)):
@@ -527,4 +527,4 @@ def getMean(numericValues):
527527
# else:
528528
# filewriter.write(str(my_numbers[index_value])+'\n')
529529
#filewriter.close()
530-
#print("Output #145: Output appended to file")
530+
#print("Output #145: Output appended to file")

0 commit comments

Comments
 (0)