0
Python intermediate help with dictionaries
I need help with the question âassign all data in the book dictionary to the into variableâ. I got as far as info=book.______ and I donât know what to put in the blank slot. Please help!! Tried to google and canât find anything
7 Respostas
0
which one is this?
course: python intermediate
lesson: ?
lecture: ?
0
Its from python intermediate course, i think working with dictionaries lesson
0
course: python intermediate
module: collection types
lesson: dictionaries / dictionary functions
does not contain that.
there is no lesson: working with dictionaries in the entire course.
so please, find it that any of us may help you....
thanks
0
I am not sure how to specify it more. I am looking at the lesson called âworking with dictionariesâ right now. I would go into it to find the specific question but i donât have hearts right now. Can you help me by telling me how to assign all data in a dictionary to a new variable? What is the function for that. It uses dot. Notation
0
that's in: python developer course.
I just restarted that course in the near past, so now I can't see the task :(
0
Do you know how to assign all values in a dictionary to a new variable?
0
Gillian ,
in your initial task description you are talking about `data`, now you mention `values`.
to assign all `values` of a dictionary to a variable, we can use the dictionary method .values()
but as far as i remember this exercise, we should assign all data, that means `keys and values`. this requires the dictionary method .items()