Answers for "get second character of string python"

1

python find second occurrence in string

# find index of second occurence of substring in string
idx = string.find(substring, string.find(substring) + 1)
Posted by: Guest on June-06-2021
0

get nth character of string python

string = "hello world"
print string[4]
//o
Posted by: Guest on April-29-2020

Code answers related to "get second character of string python"

Python Answers by Framework

Browse Popular Code Answers by Language