←
Strings
‹
Example 3 of 5
›
Reset
Run code
Python · edit the code
Ctrl
+
Enter
runs it
Code
city = "Lucknow" print(city[0]) print(city[3]) print(city[-1]) print(len(city))
Output · Python 3.14 in your browser