+ 1
Python wrong count
For example: Input is 42 18 16 2 1. Output is 500, not 300. Whatâs wrong? https://code.sololearn.com/cLjb5vi7hoYx/?ref=app
5 Answers
+ 3
Ilya Vasilyev
Problem is in taking input. You are taking input only once even you have to take inside loop because inputs are given in separate lines. And also you have to skip those age groups which are less than 3.
https://code.sololearn.com/chtZ0GCAle8t/?ref=app
+ 4
You are looping 5times for only single input of 1st person age. You have take 5 inputs in loop..
+ 2
Ilya Vasilyev , what's the description of the task?
0
TheWhÂĄteCat đ§đŹ
Practice 26.3 in Python For Beginners
0
Ilya Vasilyev you need to give inputs one by one in new line...and no need to use x -= 1 2 times
You can do that once only ...in last line of that loop block