#!/usr/bin/python

# substrings.py

a = "I saw a wolf in the forest. A lone wolf."

print (a.find("wolf"))
print (a.find("wolf", 10, 20))
print (a.find("wolf", 15))

print (a.rfind("wolf"))

#!/usr/bin/python

# substrings.py

a = "I saw a wolf in the forest. A lone wolf."

print (a.find("wolf"))
print (a.find("wolf", 10, 20))
print (a.find("wolf", 15))

print (a.rfind("wolf"))

#!/usr/bin/python # substrings.py