I have a number that I have converted into a string. I now want to assign each of the digits of this number to a new variable that I want to use later. How do I do it? 

For example if 

input = "98912817271"

How do I assign the one's digit, 1, to a variable 1 and so on? 

I've tried searching for a solution but couldn't find any on StackOverflow.Any help would be much appreciated.