if __name__ == '__main__':
t = int(input())
for i in range(t):
s = input()
ch = input()
ans = s.count(ch)
if ans > 0:
print("Occurrence of '%c' in '%s' = %d" %(ch,s,ans))
else:
print("'%c' is not present"% ch)
No comments:
Post a Comment