demo_ref_string_index2.py:
txt = "Hello, welcome to my world." x = txt.index("e") print(x)
➜ begtut>python demo_string_index2.py
1