+ 2
Problem with NumPy
I have a code where it uses numpy to find the percentile of a list of user inputs, but it says syntax error for print whenever I try to run it, does anyone know why? This is my first time using numpy. https://code.sololearn.com/cDN4nTMAyicT/?ref=app
11 Answers
+ 2
You have an extra brace ( in line no: 4
use
data.append( int( input() ) )
+ 2
Jayakrishna🇮🇳 there is still EOF error after fixing the parentheses
+ 2
Sandeep Are you running code here in SL?
After the correction, Give all inputs at once
sample ex:
2 (press enter )
3
4
5
7 ( press submit)
See output.
+ 2
Thanks Jayakrishna🇮🇳 and Sandeep but it still isnt working
+ 2
Thanks everyone! I fixed it!
+ 1
I forgot about that 😅 thanx :)
+ 1
Blazer!
As Jayakrishna🇮🇳 mentioned you have an extra brace in line 4.
After correction:
for i in range(5):
data.append(int(input()))
+ 1
I just must have forgot to save it after i deleted the brace and it didnt work
+ 1
You are deleted closed brace ) instead of open brace (.
Anyways, hoping now it's fine all..
+ 1
How much persentage you want to find .