SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to change your number into a list of those numbers, I would first cast it to a string, then casting it to a list will naturally break on each character:
string
[int(x) for x in str(n)]