Can someone tell me what is wrong in this python code?

question:https://www.codechef.com/problems/COOMILK
my code:https://www.codechef.com/viewsolution/25129375

if(s.count("cookie")==0):
    count=1

This part of code should be outside For loop and everything works fine

2 Likes