Why is this code showing no output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
29th Nov 2023, 1:51 PM
zeeshan
zeeshan - avatar
1 Answer
+ 10
Hello zeeshan On Sololearn you need to save the plot before plt.show(): #name doesn't matter but I think it need to be a png file line 13: plt.savefig('plot.png') line 14: plt.show()
29th Nov 2023, 2:29 PM
Denise Roßberg
Denise Roßberg - avatar