Bank Roulette
names_string = input("Give me everybody's names, separated by a comma. ")
names = names_string.split(", ")
import random
name_length = len(names)
payer = random.randint(0, name_length -1)
final_payer = names[payer]
print(f"{final_payer} has to pay the bill today.")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter