In Python a) Create dictionary that stores a single record of information with the attributes (i.e., columns): Name, Age, and School for a student named Jane who is 35 years old and studies at UCLA. b) Write the Python statement that grabs the value of the attribute School from this record. c) Write a Python statement that lists all the attributes of the dictionary. (Use autocompletion to find an appropriate method) d) Write a Python statement that lists all the items (formal word that means the key-value combos). Use autocompletion to find an appropriate method. e) Suppose there was a modification needed for the record and we need to correct the name to be Jane Doe rather than Jane. How would index into the record and assign this new value to the name attribute?
In Python
a) Create dictionary that stores a single record of information with the attributes (i.e., columns): Name, Age, and School for a student named Jane who is 35 years old and studies at UCLA.
b) Write the Python statement that grabs the value of the attribute School from this record.
c) Write a Python statement that lists all the attributes of the dictionary. (Use autocompletion to find an appropriate method)
d) Write a Python statement that lists all the items (formal word that means the key-value combos). Use autocompletion to find an appropriate method.
e) Suppose there was a modification needed for the record and we need to correct the name to be Jane Doe rather than Jane. How would index into the record and assign this new value to the name attribute?
Step by step
Solved in 2 steps