Python Tutorial - Coin Toss Simulator

preview_player
Показать описание
Learn how to code a coin toss simulator using Python code.

Комментарии
Автор

i tryed to add bets, i dont have finished yet but the betting code is skiped and the code starts with
(Haids or Tails)

my code is

import random

playing = True

play = input("Do you want to play? ")
if play == ("yes" or "Yes" or "y" or "Y"):
print("Let's play!")

money = int(input("How many money do you want to bet? "))
if money == (1,
print("Let's play!")
else:
print("submit a bet from 1 to



while playing == True:
number = random.randint(1, 2)
guess = input("Heads or Tails:")

about the (Let's play!) i just dont know what to say

wewergamer
Автор

you should expand upon this by creating a probability of loosing or winning based on the last games

First_person_shooter