12) Using the code in question 8: Write the python statement which will remove both the key ‘gpa’ and its value 2.8 from s2
13) True or False? A dictionary is a set of items; each item consists of a colon-separated key and value. Each item is separated from other items using a comma. Dictionaries may contain both simple and complex data types. A dictionary may contain data about a single object. Another dictionary may contain data about multiple objects. Dictionaries may contain lists and lists may contain dictionaries. Dictionaries may also contain other dictionaries. Using Python loops and conditional tests we can precisely access any piece of data contained in a dictionary.
14) True or False? The four methods most commonly used to retrieve data from a dictionary are: post(), key(), value() and item().
Dear Student ,
As per requirement submitted above kindly find below solution.
Question 13:
Answer :True
Explanation :
trainers:{
"name":"asdf ghjk",
"experience":"2 years"
}
***************************************
Question 14:
Answer :False
Explanation :
***************************************
NOTE :PLEASE FEEL FREE TO PROVIDE FEEDBACK ABOUT THE SOLUTION.
Get Answers For Free
Most questions answered within 1 hours.