Question: Question 2 . 0 1 : The folder data _ mgta 4 0 3 / contains a file called bbb _ dct . pkl with
Question : The folder datamgta contains a file called bbbdct pkl with the data described above. Load the dictionary using pickle and assign the dictionary to a new variable bbbdct Also, create a new variable bbbkeys that contains a list with the names of all keys in bbbdct
import pickle
with openenterrelativepathtofilehere", rb as file:
bbbdct pickle.loadfile
bbbkeys # create a list of dictionary keys
typebbbkeys # should return a list
Question : How many of BookBinder's customers identify as female? Assign
your result to a new variable countfemale
what levels does the "gender" variable have?
calculate the number of customers that are female
countfemale
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
