+ 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

25th May 2022, 2:16 PM
blazer!
blazer! - avatar
11 odpowiedzi
+ 2
You have an extra brace ( in line no: 4 use data.append( int( input() ) )
25th May 2022, 2:22 PM
Jayakrishna 🇮🇳
+ 2
Jayakrishna🇮🇳 there is still EOF error after fixing the parentheses
25th May 2022, 2:31 PM
Sandeep
Sandeep - avatar
+ 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.
25th May 2022, 2:42 PM
Jayakrishna 🇮🇳
+ 2
Thanks Jayakrishna🇮🇳 and Sandeep but it still isnt working
25th May 2022, 3:29 PM
blazer!
blazer! - avatar
+ 2
Thanks everyone! I fixed it!
25th May 2022, 6:35 PM
blazer!
blazer! - avatar
+ 1
I forgot about that 😅 thanx :)
25th May 2022, 2:47 PM
Sandeep
Sandeep - avatar
+ 1
Blazer! As Jayakrishna🇮🇳 mentioned you have an extra brace in line 4. After correction: for i in range(5): data.append(int(input()))
25th May 2022, 6:24 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
I just must have forgot to save it after i deleted the brace and it didnt work
25th May 2022, 6:35 PM
blazer!
blazer! - avatar
25th May 2022, 6:36 PM
blazer!
blazer! - avatar
+ 1
You are deleted closed brace ) instead of open brace (. Anyways, hoping now it's fine all..
25th May 2022, 6:47 PM
Jayakrishna 🇮🇳
+ 1
How much persentage you want to find .
26th May 2022, 8:24 AM
Vivek Sharma R
Vivek Sharma R - avatar