move a string index python code example
Example 1: get nth character of string python
string = "hello world"
print string[4]
//o
Example 2: how to slice a string in python
a = 'hello'
print(a[1:2])
string = "hello world"
print string[4]
//o
a = 'hello'
print(a[1:2])