A

Admin • 833.24K Points
Coach

Q. What happens if x and y passed to `plt.plot(x, y)` have different lengths?

  • (A) It works normally
  • (B) Raises a ValueError
  • (C) Only part of the plot is drawn
  • (D) The shorter list is padded with zeros
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Matplot Lib
  • Hashtags:

Explanation by: Admin

Both x and y must have the same length or it raises a ValueError.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.