Count variable Invalid Syntax

I’m back again with what you guys probably see as a stupid question. I have been working on a sim

import random

def main()

    game()

def game():

    suite_list()

    money = (100)

    count = (0)

    suite_list()

    card1 = random.randint(1,6)

    card2 = random.randint(1,6)

    card3 = random.randint(1,6)

    while user_money>start_bet:

        guess = int(input("""
           Pick One!
           1:'Crown',
           2:'Anchor',
           3:'Heart',
           4:'Diamond',
           5:'Club',
           6:'Spade',
           0:'Quit',
           """)

        if guess==card1():
                count+=1
        if guess==card2():
                count+=1
        if guess==card3():
                count+=1
        if guess==0():
                print(" Fedora wearing scrublord, be gone with you")
                break
    else:
        print("Looks like you have run out of the monies, come back when you've got some dough")
    break

    rewards()

def suite_list():

    cards={1:'Crown',
           2:'Anchor',
           3:'Heart',
           4:'Diamond',
           5:'Club',
           6:'Spade',
           0:'Quit',}

def rewards():

        if count==0:
            money=(money-bet)
        if count==1:
            money=(money)
        if count==2:
            money=(money+betamount)
        if count==3:
            money=(money+(betamount*2))

        print(cards[card1])
        print(cards[card2])
        print(cards[card3])
        print('You picked these',cards[guess])
        print('You now have',money,'monies!')

main()

I am having trouble with the count variable(invalid syntax), and I know it will turn out to be very simple, I am still asking for help. I am not asking for this project to be done for me, just for a fix to the error.


Source: syntax

Leave a Reply