79647592

Date: 2025-06-01 14:00:13
Score: 0.5
Natty:
Report link

Is you wanted to output string:

>>> list(str(1234))
['1', '2', '3', '4']

If you want to output integers:

>>> map(int, str(1234))
[1, 2, 3, 4]

If you want to use no prebuilt methods (output int)

>>> [int(i) for i in str(1234)]

[1, 2, 3, 4]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chase Miller