No error but also no output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

No error but also no output

Can I print m? https://code.sololearn.com/c0Ud41HtXsYU/?ref=app

30th Nov 2019, 8:10 AM
Oma Falk
Oma Falk - avatar
17 Answers
+ 8
here is a working example of Paul Jacobs code Oma Falk and it is pandas sample https://code.sololearn.com/chYpuMNyt4eY/?ref=app all I added was import numpy and the code worked no other addition or alterations
3rd Dec 2019, 1:40 PM
BroFar
BroFar - avatar
+ 4
I did a test in SL with a file writing and reading. - First i did NOT import sympy. Result is as expected, file content is displayed with print. - Second try WITH importing sympy. No output at all. I am sure that sympy is loaded and supported. I can call functions like isprime() and so forth, but all without output.
30th Nov 2019, 11:40 AM
Lothar
Lothar - avatar
+ 3
Think there is something wrong. I have two codes that worked in the past and now they give no output. One uses pandas, the other one numpy.
30th Nov 2019, 8:43 AM
Paul
Paul - avatar
+ 3
Lothar I reported to SL. Also Paul Jacobs faced problems with some numerical libraries.
30th Nov 2019, 11:54 AM
Oma Falk
Oma Falk - avatar
+ 3
BroFarOps 👑 Why do you import numpy in your code when you create standart list?
3rd Dec 2019, 7:28 AM
Sebastian Keßler
Sebastian Keßler - avatar
+ 3
Sebastian Keßler really didn't need to here but it is somewhat standard for working with actual data to get data analysis plus matplotlib for a some projects. If I wanted to go a bit deeper I might use scipy along with numpy and matplotlib. However, if I'm doing theoretical mathematics such as physics, I would consider sympy.
3rd Dec 2019, 8:16 AM
BroFar
BroFar - avatar
+ 3
SoloLearn Python has been downgraded from 3.8 to 3.7
3rd Dec 2019, 9:00 PM
Bilbo Baggins
Bilbo Baggins - avatar
+ 2
I was wrong about numpy, probably tested it once or twice, that obviously wasn't often enough. But pandas isn't working anymore. With no error and no output. Try for yourself if you want to. https://code.sololearn.com/cwEWP44x9NY7/?ref=app
3rd Dec 2019, 7:57 AM
Paul
Paul - avatar
+ 1
It seems like sympy is not supported..
30th Nov 2019, 8:21 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
I will ask sololearn
30th Nov 2019, 10:07 AM
Oma Falk
Oma Falk - avatar
+ 1
Paul Jacobs nono I tested it too and reported your prog as example for numpy to SL. Now numpy is on again I think.
3rd Dec 2019, 8:47 AM
Oma Falk
Oma Falk - avatar
0
Sami Khan Right..but in this case I expect a syntax error.
30th Nov 2019, 8:32 AM
Oma Falk
Oma Falk - avatar
0
m=([1,2,3],[2 ,3,4]) print(m[0]) print(m[1])
1st Dec 2019, 2:30 PM
Achyuth Kp
Achyuth Kp - avatar
0
I have an old numpy code which now registers a 'future warning' indicating changes are being made. Would you like me to post on this thread to review?
2nd Dec 2019, 4:07 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Oma Falk I just created this based on Achyuth Kp details and used numpy and it worked https://code.sololearn.com/c5hsQD7c22FY/?ref=app
2nd Dec 2019, 4:31 AM
BroFar
BroFar - avatar
0
BroFarOps 👑 so it is only sympy... okay☺️
3rd Dec 2019, 6:32 AM
Oma Falk
Oma Falk - avatar
3rd Jun 2021, 5:01 PM
Ervis Meta
Ervis Meta - avatar