Convert a number to a list of integers [duplicate]

You mean this?

num = 1234
lst = [int(i) for i in str(num)]

Leave a Comment