Answers for "python cast int to list"

4

python make integer into a list

res = [int(x) for x in str(num)]
Posted by: Guest on April-02-2020
0

int to list python

res = list(map(int, str(num)))
Posted by: Guest on June-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language