Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
A student writes plt.plot([1, 2, 3], [1, 2]). What happens? | StemPy Lab
Quizzes
/
A student writes plt.plot([1, 2, 3], [1, 2]). What happens?
Python Programming
Medium
High School (11–12)
High School (9–10)
Undergraduate
General
Python for Science and Maths › Graphs with matplotlib
Created by
StemPy Lab
A student writes plt.plot([1, 2, 3], [1, 2]). What happens?
An empty graph with no error
A line through three points
A ValueError, because x and y have different lengths
A line through two points
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← What does this program print? t = np.array([0, 2, 4]); x = np.array([0, 10, 30]); print(np.diff(x) / np.diff(t))
Data of a radioactive decay is plotted with a log scale on the y axis, and the points lie on a straight line. What does this tell you? →
More on
Python for Science and Maths › Graphs with matplotlib
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
A cyclist's speed in m/s at the times 0, 1, 2,..., 10 seconds is 0, 2, 4, 6, 8, 8, 8, 6, 4, 2, 0.
Hard
A trolley is at the positions 0, 3, 12, 27, 48, 75 and 108 metres at the times 0, 1, 2, 3, 4, 5 and…
Medium
A savings account starts with 1000 dollars and grows by 8 percent each year: after n years it has…
Medium
A cup of tea is 60 degrees hotter than the room at time 0.
Hard
All problems on this topic →