Python | Convert number to list of integers - GeeksforGeeks

PHOTO EMBED

Tue Jun 29 2021 14:22:15 GMT+0000 (Coordinated Universal Time)

Saved by @hbroph123

res = [int(x) for x in str(num)]
content_copyCOPY

https://www.geeksforgeeks.org/python-convert-number-to-list-of-integers/