Why this code is showing error on sololearn | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Why this code is showing error on sololearn

import matplotlib.pyplot as plt import numpy as np ypoints = np.array([3, 8, 1, 10]) plt.plot(ypoints, marker = 'o') plt.show()

25th Apr 2022, 8:19 AM
Harpreet singh
Harpreet singh - avatar
6 Answers
+ 3
Please put a relevant programming language name in the tags for context clarity 👍 https://code.sololearn.com/W3uiji9X28C1/?ref=app
25th Apr 2022, 11:55 AM
Ipang
+ 1
It are the spaces in your program. If you replace spaces with playground spaces it will work. https://code.sololearn.com/cWS8tkHKH91g/?ref=app
25th Apr 2022, 8:34 AM
Paul
Paul - avatar
+ 1
Try my code again. You need to save the output on sololearn, i think.
25th Apr 2022, 8:51 AM
Paul
Paul - avatar
+ 1
Thank you sir Paul
25th Apr 2022, 8:59 AM
Harpreet singh
Harpreet singh - avatar
25th Apr 2022, 8:25 AM
Harpreet singh
Harpreet singh - avatar
- 1
Yes Mirielle I copied but it should give output
25th Apr 2022, 8:49 AM
Harpreet singh
Harpreet singh - avatar