Home / Python Strings / How to Access Elements of String in Python In this example we will show how to access elements of the string in Python. Source Code my_str = 'Python' print(my_str[2]) print(my_str[4]) Output: t o