A line containing a string seperated by a comma.
Python, is, fun
SOLUTION CODE
# Taking multiple inputs as comma separated vlaues from the user
my_inputs = [str(x) for x in input("Enter multiple string values separated by comma\n").split(', ')]
#print the claues as a list
print("\nThe values of input are", my_inputs)
Comments
Leave a comment