Search Header Logo

058. Extra Help

Authored by Robert Giordano

Computers

9th - 12th Grade

058. Extra Help
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

4 questions

Show all answers

1.

DRAG AND DROP QUESTION

1 min • 1 pt

Complete the import statement to use the graphing ability

import ​ (a)   .​ (b)   as ​ (c)  

matplotlib
pyplot
plt

2.

DRAG AND DROP QUESTION

1 min • 1 pt

Media Image

Complete the code to add the x and y values shown in the image.

import matplotlib.pyplot as plt

xVals = [1, 2, 3, 4]

yVals = [5, 6, 7, 8]

​ (a)   .​ (b)   (​ (c)   , ​ (d)   )

plt
plot
xVals
yVals
pyplot
matplotlib

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to complete the code to add a grid to the graph.

import matplotlib.pyplot as plt

xVals = [1, 2, 3, 4]

yVals = [5, 6, 7, 8]

plt.plot(xVals, yVals)

plt.____( )

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to graph the data

import matplotlib.pyplot as plt

xVals = [1, 2, 3, 4]

yVals = [5, 6, 7, 8]

plt.plot(xVals, yVals)

plt.grid( )

plt.____( )

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?