File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636
3737
3838def get_letter_count (message : str ) -> dict [str , int ]:
39- ''' get_letter_count() is a function that takes message as parameter which is
40- supposed to be the string. and it returns a dictionary where string is a key
41- and integer is a value.'''
39+ """ get_letter_count() is a function that takes message as parameter which is
40+ supposed to be the string. and it returns a dictionary where string is a key
41+ and integer is a value."""
4242 letter_count = dict .fromkeys (string .ascii_uppercase , 0 )
4343 for letter in message .upper ():
4444 if letter in LETTERS :
@@ -48,7 +48,7 @@ def get_letter_count(message: str) -> dict[str, int]:
4848
4949
5050def get_item_at_index_zero (x : tuple ) -> str :
51- ''' It takes x as parameter which is tuple and returns a string.'''
51+ """ It takes x as parameter which is tuple and returns a string."""
5252 return x [0 ]
5353
5454
You can’t perform that action at this time.
0 commit comments