Skip to content

Commit a41d85f

Browse files
committed
Just update the method of counting with a single line of code.
1 parent fa8e734 commit a41d85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CountMillionCharacter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
Exeunt'''
290290
count = { }
291291
for character in info.upper():
292-
count[character] = count.get(character,0)+1
292+
count[character]=count.get(character,0)+1
293293

294294
value = pprint.pformat(count)
295295
print(value)

0 commit comments

Comments
 (0)