Hi all,
what is the best way to "slice" a number?
I mean, I want to get all the digits of a number.
I want something like this:
what is the best way to "slice" a number?
I mean, I want to get all the digits of a number.
I want something like this:
num = 123456 strnum = str(num) for i in range (len(strnum)+1): digit = strnum[i]Thank