0

Problem with importing libs on solo learn code editor

I'm facing problem while import following libraries on solo learn. Is there anyone who knows how to import these libraries? Import matplotlib.pyplot as plt Import numpy as np

26th Apr 2022, 9:37 PM
Muhammad Mehran Bin Azam
Muhammad Mehran Bin Azam - avatar
10 Réponses
0
Does your code use Import like in your question then maybe that's the problem. Should be lowercase import. Otherwise post your code. Tried to import myself and worked for me.
26th Apr 2022, 10:13 PM
William Jönsson
William Jönsson - avatar
0
No in my code everything is fine related to syntax error but still I am getting error
26th Apr 2022, 10:34 PM
Muhammad Mehran Bin Azam
Muhammad Mehran Bin Azam - avatar
0
Can you post the code or atleast the error.
26th Apr 2022, 10:36 PM
William Jönsson
William Jönsson - avatar
26th Apr 2022, 10:49 PM
Muhammad Mehran Bin Azam
Muhammad Mehran Bin Azam - avatar
0
Yeah weird. Though you should put plt.savefig("plot.png") to display in sololearn.
26th Apr 2022, 10:59 PM
William Jönsson
William Jönsson - avatar
26th Apr 2022, 11:00 PM
William Jönsson
William Jönsson - avatar
0
But the error is at first line where I am importing libraries
26th Apr 2022, 11:02 PM
Muhammad Mehran Bin Azam
Muhammad Mehran Bin Azam - avatar
0
May be by the way thank you so much for you help 💝
26th Apr 2022, 11:07 PM
Muhammad Mehran Bin Azam
Muhammad Mehran Bin Azam - avatar
26th Apr 2022, 11:08 PM
William Jönsson
William Jönsson - avatar
0
Searched online. If you copied it from a webpage or something there might be hidden characters in/instead of the whitespaces, I replaced the whitespaces with whitespaces and it works now. PS add plt.savefig to show the plot in sololearn
26th Apr 2022, 11:09 PM
William Jönsson
William Jönsson - avatar