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

question:COOMILK Problem - CodeChef
my code:CodeChef: Practical coding for everyone

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

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

2 Likes