+ 2

Not getting output (SOLVED)

Question 👇 https://code.sololearn.com/c2xYRAib5jyy/?ref=app trainee = [[],[],[],[]] for i in range(3): for j in range(3): trainee[i].append(int(input())) if (trainee[i][-1]) not in range(1,101): print("invalid input") for i in range(3): trainee[3].append((trainee[2][i]+trainee[1][i]+trainee[0][i])//3) maximum = max(trainee[3]) for i in range(3): if trainee[3][i] < 70 : print("Trainee {0} is unfit".format(i+1)) elif trainee[3][i] == maximum: print("Trainee Number: ",i+1)

14th Apr 2021, 1:14 PM
Goku
Goku - avatar
24 Respostas
+ 5
25.5 k views???
16th Apr 2021, 9:49 AM
Hello
Hello - avatar
+ 4
INPUT VALUES             95             92             95             92             90             92             90             92             90 OUTPUT VALUES Trainee Number : 1 Trainee Number : 3
14th Apr 2021, 2:04 PM
Goku
Goku - avatar
+ 4
Goku, I saved your code in SoloLearn as a code bit and ran a test with the input sample. But it is giving me output, I don't understand why you get no output though. https://code.sololearn.com/cN7lC7wEbDs4/?ref=app
14th Apr 2021, 2:40 PM
Ipang
+ 3
Ipang I saw your code when I run the output It shows EOF error to me via sololearn mobile app
14th Apr 2021, 2:44 PM
Goku
Goku - avatar
+ 3
Goku, Could be, but in what way is it wrong? how you came to this conclusion?
14th Apr 2021, 2:55 PM
Ipang
+ 2
Ipang To check unfit trainee 95            65             95             98             67             92             90             65             90
15th Apr 2021, 5:53 AM
Goku
Goku - avatar
+ 1
Ipang No taken from website
14th Apr 2021, 1:21 PM
Goku
Goku - avatar
+ 1
Ipang Don't know , I tried every way that I know but still it showing EOFERROR to me
14th Apr 2021, 4:00 PM
Goku
Goku - avatar
+ 1
Ipang I gave space after each number that's why I didn't get the output in sololearn app
15th Apr 2021, 5:47 AM
Goku
Goku - avatar
+ 1
Ipang Thanks
15th Apr 2021, 5:47 AM
Goku
Goku - avatar
+ 1
INPUT VALUES 95 92 95 92 90 92 90 92 90 OUTPUT VALUES Trainee Number : 1 Trainee Number : 3 Not getting output
15th Apr 2021, 8:03 PM
Kovalov Evgen
Kovalov Evgen - avatar
+ 1
Twin Chick, It says 51.1K views now. I wonder is that a bug or what?
19th Apr 2021, 7:16 AM
Ipang
+ 1
Ipang probably someone viewed and unviewed it
19th Apr 2021, 8:00 AM
Hello
Hello - avatar
+ 1
oh Ipang is here. he answered my question too!
8th May 2021, 11:46 AM
IliaAbbasi
IliaAbbasi - avatar
+ 1
it is giving output
9th May 2021, 10:40 AM
Raj Patil
Raj Patil - avatar
0
Is this one of the code coach challenge? What the code was supposed to do?
14th Apr 2021, 1:19 PM
Ipang
0
Goku, Can you give me some numbers for testing the code? And also the expected output by the input ...
14th Apr 2021, 1:59 PM
Ipang
0
I just tested it with the sample you gave me. Like this, in separate lines ... 95 92 95 92 90 92 90 92 90
14th Apr 2021, 2:46 PM
Ipang
0
Goku, Never mind, Can you give me more samples to check for unfit trainee?
14th Apr 2021, 4:02 PM
Ipang
0
Hi everyone, I did all i can to do this task but nothing is going well.. help plrease : You are working on a Store Manager program, which stores the prices in an array. You need to add functionality to increase the prices by the given amount. The increase variable is taken from user input. You need to increase all the prices in the given array by that amount and output to the console the resulting array.
16th Apr 2021, 8:10 PM
Mahamadou Tiame
Mahamadou Tiame - avatar