import random

name_string = input("Give me everyone's names, seperated by a comma: \n")
names = name_string.split(", ")
random_name = random.randint(0,len(names)-1)

print(f"{names[random_name]} is going to buy the meal today.")

import random

name_string = input("Give me everyone's names, seperated by a comma: \n")
names = name_string.split(", ")
random_name = random.randint(0,len(names)-1)

print(f"{names[random_name]} is going to buy the meal today.")
