split-string.py 191 B

1234567
  1. import random
  2. names_string = input("Give me everybody's names, separated by a comma. ")
  3. names = names_string.split(", ")
  4. for num in range(0, len(names) * 2):
  5. print(random.choice(names))