30-Days-Of-Python icon indicating copy to clipboard operation
30-Days-Of-Python copied to clipboard

Day 17 markdown correction

Open venkyqz opened this issue 3 years ago • 0 comments

There is an error in the example code of Day 17 docPacking Dictionaries part

The string object should be formatted in this way or it will not print the content of the dictionary object.

def packing_person_info(**kwargs):
    for key in kwargs:
        #print("{key} = {kwargs[key]}")
        print(f'{key} = {kwargs[key]}')
    return kwargs

print(packing_person_info(name="Asabeneh",
      country="Finland", city="Helsinki", age=250))

venkyqz avatar Jul 12 '22 02:07 venkyqz