The ‘in’ and ‘not in’ operators can be used with strings to determine whether a string is present in another string. Therefore, these operators are called as Membership Operators.
str1=input ("Enter a string: ")
if str2 in str1:
print ("Not Found")
Output : 1
Enter a string: Chennai G HSS, Saidapet
Output : 2
Enter a string: Govt G HSS, Ashok Nagar