how to get nth character in a string in python code example Example: get nth character of string python string = "hello world" print string[4] //o