Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to split a number

number = "12345"
result = []
for digit in number:
    result.append(digit)
print(result)
# result is ['1', '2', '3', '4', '5']
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #python #split #number
ADD COMMENT
Topic
Name
9+1 =