Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- # Split string method
- names_string = input("Give me everybody's names, separated by a comma. ")
- names = names_string.split(", ")
- # Don't change the code above
- num = len(names) - 1
- num = random.randint(0, num)
- num = names[num]
- print(f"{num} Has to pay this time")
- #Write your code below this line
Add Comment
Please, Sign In to add comment