关键词 >

Assignment 2

发布时间:2020-10-13

Assignment 2

Just as with assignment 1, complete the questions below by answering each question using the appropriate variable name.

Once you completed this assignment, export your work as a2.py and include that file in your Github repository. The file a2.py will be evaluated for your assignment.

Question 1:

In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:

Question 2

You have been provided a file that can be read in with the following code:

import pickle
with open('q2.pkl', 'rb') as file:
  jokes = pickle.load(file)

In your session, jokes is a list of dictionaries. You will use this object to answer the questions below.

Hint: If you are using Google Colab, you will need to upload the q2.pkl file to the Colab Sesssion.

In [ ]:
In [ ]: