LearnPy Hub
← Comprehensions problems
Easy

Digits as a List

Read a number and print a list of its digits as integers, using a comprehension over the string.

Input

One integer ≥ 0.

Output

A list.

Sample 1

Input
12345
Output
[1, 2, 3, 4, 5]

Sample 2

Input
0
Output
[0]
solution.py
Output appears here
Digits as a List · Python practice problem · LearnPy Hub