programming-examples/python/_Basics/Generate a list and tuple with comma-separated numbers.py
2019-11-15 12:59:38 +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)