Question
Informatics Practices Question on I/O Interface
What inference can you make out of the following code ?
plt.plot(x, y) plt.plot(x, z)
plt.legend(loc= "upper left”)
A
Line graph with legend will be plotted
B
Line graph with legend will not print
C
Line graph will only be printed/plotted
D
Only legend will be seen
Answer
Line graph will only be printed/plotted
Explanation
Solution
The correct option is(C): Line graph will only be printed/plotted