Im currently working on the games of chance project, and ive finished my code up to a certain extent, but id like for a user input prompt to appear instead of having to type the game functions in the code itself and defining whether or not its heads or tails, however when it prompts the user for input, and how much they would like to bet, nothing happens and the process finishes, im assuming its because it is not linked together somehow but im unsure on how to do that?
import random money = 100 #Functions for the actual game are here def coin_flip(guess, bet): side = random.randint(1, 2) if guess == "Heads" and side == 1: total_money = money + bet print(int(bet)) print("Heads, you won! Your total money is now " + str(money + bet)) return total_money if guess == "Tails" and side == 2: total_money = money + bet print(int(bet)) print("Tails, you won! Your total money is now " + str(money + bet)) return total_money else: total_money = money - bet print(int(-bet)) print(("You lost! Your total is now ") + str(money - bet) + ".") return total_money # Game functions are called here coin_flip = input("What side of the coin would you like to guess? ") type(coin_flip) bet = input("How much would you like to bet? ") type(coin_flip)