Good people I have a small text of 1859 words where I stored it all in a variable in the format string. The question and the following I have this little code I made below:
w = wordstring.split()
i = 0
for x in w:
c = x.find('Be')
if c == 0:
i += 1
print('{} - {}'.format(i, x))
I want to search for the exact word that in the case would be 'Be', but in my output it does not return with this precision:
1 - Being
2 - Besides,
3 - Be
4 - Before,
Is there any pythonic way for me to have this exactness.