LearnPy Hub
← Comprehensions problems
Easy

Text to Numbers

Read numbers separated by commas and print the list of integers using a comprehension.

Input

One line.

Output

A Python list.

Sample 1

Input
1,2,3
Output
[1, 2, 3]

Sample 2

Input
10
Output
[10]
solution.py
Output appears here
Text to Numbers · Python practice problem · LearnPy Hub