Dec-22-2017, 04:18 PM
Imagine there are two variables:
source=123456
selected=[]
Is there a way to append the first integer from the variable 'source' into the list variable 'selected'?
If not, then how can i separate all the integers in the variable 'source' and append them into the 'selected' list like this:
>>>print(selected)
>>>['1','2','3','4','5','6']
Thanks for any responses.
source=123456
selected=[]
Is there a way to append the first integer from the variable 'source' into the list variable 'selected'?
If not, then how can i separate all the integers in the variable 'source' and append them into the 'selected' list like this:
>>>print(selected)
>>>['1','2','3','4','5','6']
Thanks for any responses.