import random
betters = []
number_of_people_str = input("How many people are betting? ")
number_of_people = int(number_of_people_str)
for better in range(number_of_people):
betters.append(input("Enter the name of better: "))
betters.append("Casino")
amount_to_bet = int(input("How much do you want to bet? "))
round_to_bet = int(input("How many time do you want to bet? "))
total_amount = number_of_people * amount_to_bet
for round in range(round_to_bet):
random_winner = random.randint(0,number_of_people)
print(betters[random_winner]," won " ,total_amount)
betters = []
number_of_people_str = input("How many people are betting? ")
number_of_people = int(number_of_people_str)
for better in range(number_of_people):
betters.append(input("Enter the name of better: "))
betters.append("Casino")
amount_to_bet = int(input("How much do you want to bet? "))
round_to_bet = int(input("How many time do you want to bet? "))
total_amount = number_of_people * amount_to_bet
for round in range(round_to_bet):
random_winner = random.randint(0,number_of_people)
print(betters[random_winner]," won " ,total_amount)
No comments:
Post a Comment