+ 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]

23rd Jun 2018, 8:56 AM
Malipelk
2 Answers
+ 19
num = int(123) num = str(num) num = list(num) print(num)
23rd Jun 2018, 9:03 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
thank you
23rd Jun 2018, 9:05 AM
Malipelk