Answers for "split method-list comp_comma"

0

split method-list comp_comma

# taking multiple inputs at a time separated by comma
x = [int(x) for x in input("Enter multiple value: ").split(",")]
print("Number of list is: ", x)
Posted by: Guest on July-31-2021

Browse Popular Code Answers by Language