Python ProgrammingPython Programming

How can I find the first occurrence of a sub-string in a Python string?

test = 'Position of a character'
print(test.find('of'))
print(test.find('a'))
Output
9
12