Python ProgrammingPython Programming

How to get the position of a character in Python?

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