Not getting output (SOLVED) | SoloLearn: Learn to code for FREE!

+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)

4/14/2021 1:14:54 PM

Goku

21 Answers

New Answer

+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

+3

INPUT VALUES             95             92             95             92             90             92             90             92             90 OUTPUT VALUES Trainee Number : 1 Trainee Number : 3

+3

Ipang I saw your code when I run the output It shows EOF error to me via sololearn mobile app

+3

Goku, Could be, but in what way is it wrong? how you came to this conclusion?

+3

Ipang To check unfit trainee 95            65             95             98             67             92             90             65             90

+3

+1

Ipang No taken from website

+1

Ipang Don't know , I tried every way that I know but still it showing EOFERROR to me

+1

Ipang I gave space after each number that's why I didn't get the output in sololearn app

+1

Ipang Thanks

+1

INPUT VALUES 95 92 95 92 90 92 90 92 90 OUTPUT VALUES Trainee Number : 1 Trainee Number : 3 Not getting output

+1

Twin Chick, It says 51.1K views now. I wonder is that a bug or what?

+1

Ipang probably someone viewed and unviewed it

0

Is this one of the code coach challenge? What the code was supposed to do?

0

Supposed to give output if the value is between 1 to 100 and "invalid" If it is not

0

Goku, Can you give me some numbers for testing the code? And also the expected output by the input ...

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

0

Goku, Never mind, Can you give me more samples to check for unfit trainee?

0

Q&A is hard

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.