subject
Computers and Technology, 16.05.2021 01:30 peteh5

Dictonary_Assignment Please help ASAP!!

1. Give three examples of real-world objects that behave like a dictionary.
2. Assume that the variable data refers to the dictionary {“b”:20, “a”:35}.
Write the values of the following expressions(ie results)
a. data[“a”]
b. data. get(“c”, None)
c. len(data)
d. data. keys()
e. data. values()
f. data. pop(“b”)
g. data # After the pop above
3. Assume that the variable data refers to the dictionary {“b”:20, “a”:35}.
Write the expressions that perform the following tasks (ie python code):
a. Replace the value at the key “b” in data with that value’s negation.
b. Add the key/value pair “c”:40 to data.
c. Remove the value at key “b” in data, safely.
d. Print the keys in data in alphabetical order.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
question
Computers and Technology, 24.06.2019 02:40
Has anyone seen my grandma shes been gone for 4 years already
Answers: 1
question
Computers and Technology, 24.06.2019 18:30
How does the use of e-mail benefit business communications? it can be sent at any time. it is faster than regular mail. it improves writing skills. it is less expensive than using a courier. it reduces the need for proofreading.
Answers: 1
You know the right answer?
Dictonary_Assignment Please help ASAP!!

1. Give three examples of real-world objects th...
Questions
question
History, 28.07.2019 12:20
question
Biology, 28.07.2019 12:30
question
Mathematics, 28.07.2019 12:30
Questions on the website: 13722366