Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

### Tell us what’s happening:
Hi, I need help with my code. I keep getting a ValueError, and I am not sure why. It says: 'The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

### Your code so far
here is a link to my code: Sign Up - Replit

### Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

### Challenge Information:
Data Analysis with Python Projects - Mean-Variance-Standard Deviation Calculator

Use run command sh: 1: Use: not found exit status 127 

You need to configure the run button.

go to replite file and in the run=“” type python3 main.py

link to your replite

2 Likes

The code itself looks good, I’m not able to replicate this error.

You have a few different versions of this on replit though, I was looking at #3 linked by @zaklina

1 Like

Yes, I reconfigured the replit file and it ran on the console but I still have those 2 errors.

Yes its the 3rd one, I think I deleted the others now.

1 Like
array = np.array([list])

you should directly convert the input list to a NumPy array without wrapping it in an additional list.

array = np.array(list)

1 Like

Thank you for the help, it works now :slight_smile:

1 Like

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