+ 1
From int to list
Hello I am searching for a way to change an integrer into a list For example : change 432 into [4, 3, 2]
2 Answers
+ 19
num = int(123)
num = str(num)
num = list(num)
print(num)
+ 1
thank you
Hello I am searching for a way to change an integrer into a list For example : change 432 into [4, 3, 2]