Numpy array prints array in front of array

Tell us what’s happening:
Describe your issue in detail here.

When I convert the input string into a numpy array, this one prints normally without the word array. But when I create the arrays for the statistical metrics, those print with the word array in front of them. Why?
I tried to convert the numpy array to a python list with the np.array(myarray).tolist() command, but this will throw an error, saying that the ndarray does not have a tolist method.

Your project link(s)

solution: https://replit.com/@dmikes/mean#mean_var_std.py

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36

Challenge: Mean-Variance-Standard Deviation Calculator

Link to the challenge:

I was typing toList() instead of tolist()

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.