Answer to Question #273958 in Python for Tipanyaaa

Question #273958

A line containing a string seperated by a comma.





Python, is, fun

1
Expert's answer
2021-12-02T00:35:40-0500


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)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS