Showing partially correct answer

i have a query regarding the problem"weightage " from Practice for ZCO and INOI
i did the program in python and i got the exact output for the given program but it is still showing partially correct answer
could you please fix the bugs ASAP