programming-examples/python/Basics/Generate a list and tuple with comma-separated numbers.py
2019-11-18 14:44:36 +01:00

5 lines
159 B
Python

values = input("Input some comma seprated numbers : ")
list = values.split(",")
tuple = tuple(list)
print('List : ',list)
print('Tuple : ',tuple)