Problem: Hostel Room(Starter26) Why does my code fail test cases?

I create a list of total number of students present in ith minute and print the max out of the list.

Solution link:CodeChef: Practical coding for everyone

According to the problem statement, There are initially x people in a room.
Therefore don’t initialise time_people as an empty list.
Just do, time_people=[x] , and it should work.