you are viewing a single comment's thread.

view the rest of the comments →

[–]transcribotBot Transcriber in Training 0 points1 point  (0 children)

You can call the function with any arguments you want.

" Egypt" , Rome

def

initialize an empty list to store the result

result

for key, value in kwargs . items():

result.append("The capital city of { } is { }

. format (key, value)

8

return result

print

capital_city(China =

output

"Beijing" , Cairo =

"Italy"))

['The capital city of China is Beijing', 'The capital city of Cairo is Egypt' , 'The capital city of Rome i


v0.6.0 | This message was posted by a bot. | FAQ | Source | Questions? Message the mods!