I have the following code:
stru = "۰۱۲۳۴۵۶۷۸۹"
strlist = stru.decode("utf-8").split()
print strlist[0]
my output is :
۰۱۲۳۴۵۶۷۸۹
But when i use:
print strlist[1]
I get the following traceback
:
IndexError: list index out of range
My question is, how can I split
my string
? Of course, remember I get my string
from a function
, consider it's a variable
?