As I am a newbie ... not understanding why it's not working properly ? expecting the cause and solution and also tips thanks
str = "gram chara oi ranga matir poth"
find ='p'
l = len(str)
for x in range(0,l):
if str[x]==find:
flag = x
#break
if flag == x:
print "found in index no",flag
else:
print "not found in there"