Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

Python has a type for a 'dictionary', which is basically a set of key-value pairs, as well as a common ADT (abstract data type). We give an 'example'. grades = {'jo':55, 'moe':97, 'will':74, 'bill':80)} Here are some messages and their outcomes: grades.keys() ['jo','moe','will','bill'} grades.values() [55,97,74,80] grades.items() [('jo',55),('moe',97),('will',74),('bill',80)] NOTE: the above approximates python syntax, but the output format is intended to be suggesive only. And also: grades.add('phil',17) adds a pair to the dictionary grades.del('moe') remo

OpenStudy (e.mccormick):

Well, do you know what some of the different data types are?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!