You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
173 B

9 months ago
import random
names_string = "Angela, Ben, Jerry, Michael, Chloe"
names = names_string.split(", ")
random_name = random.randint(1, len(names)-1)
print(names[random_name])