x="python is popular and easy"
print(x.count('is'))
print(x.count('p'))
print(x.count(' '))

print(x.index('p'))
print(x.index('p',4))
#print(x.index('x')) gives an error

print(x.find('p'))
print(x.find('p',6))
print(x.find('x'))
