Assume that the variabledatarefers to the dictionary{'b':20, 'a':35}. Write the expressions that perform the following tasks:
a. Replace the value at the key'b'indatawith that value's negation.b. Add the key/value pair'c':40todata.c. Remove the value at key'b'indata, safely.d. Print the keys indatain alphabetical order.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here