I am working with a search problem and I am having issues getting it to work. So here is what I am trying to do:
bus_name = 'GUARDFORCE AI'
description = 'GUARDFORCE AI CO LIMITED AI GFAIW RIVERSOFT INC PEAKWORK COMPANY GFAIS CONCIERGE GUARDFORCE AI RIVERSOFT ROBOT TRAVEL AGENCY'
# # Solution 1
if bus_name in description:
print('Yes')
else:
print('No')
If I change bus_name to 'GUARDFORCE A' it will still say 'Yes', but I want it to say 'No'. I am only looking for full matches, not partial. Any ideas how to get this to work?