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-18 14:44:36 +01:00
values = input("Input some comma seprated numbers : ")
list = values.split(",")
tuple = tuple(list)
print('List : ',list)
print('Tuple : ',tuple)