We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
# Enter your cimportrest=""foriinrange(int(input())):st+=(" "+input())fortinrange(int(input())):c=0word1=input()word2=word1[:len(word1)-2]+"se"c+=len(list(re.findall(word1,st)))c+=len(list(re.findall(word2,st)))print(c)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The British and American Style of Spelling
You are viewing a single comment's thread. Return to all comments →
for begginers python