programming-examples/python/_Basics/Generate a list and tuple with comma-separated numbers.py

5 lines
159 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
values = input("Input some comma seprated numbers : ")
list = values.split(",")
tuple = tuple(list)
print('List : ',list)
print('Tuple : ',tuple)