Question

Hi, I need help with Python Dictionaries please. Question: Write a function named "add_key_value" that takes...

Hi, I need help with Python Dictionaries please. Question: Write a function named "add_key_value" that takes a key-value store as a parameter with strings as keys and integers as values. The function will add a key-value pair to the input store with a key of "slam" and a value of 39. There is no need to return any value. Thanks!

0 0
Add a comment Improve this question Transcribed image text
Answer #1


def add_key_value(d):
    d['slam'] = 39

Add a comment
Know the answer?
Add Answer to:
Hi, I need help with Python Dictionaries please. Question: Write a function named "add_key_value" that takes...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT