Given a long string such as:
"fkjdlfjzgjkdsheiwqueqpwnvkasdakpp"
or
"0.53489082304804918409853091868095809846545421135498495431231"
How do I find the value of the nth character in that string? I could solve this if I could convert it into a list (where each digit gets it's own index) but since the numbers aren't separated by commas I don't know how to do this either.
AFAIK there is no command like string.index(10) which would return the 11th character in.
myString[5]will return the 6th character. Also, if for some reason you wanted to make it into a list anyways,list(myString)will make a list in the way you mention.a[n]to get character numbern?my_str.index('c')is a method which will find the index of a substring.