mardi 29 août 2017

IF statement not working for my code [on hold]

first off sorry if i'm being extremely stupid but i can't seem to get this if statement to work, help would be greatly appreciated. Thanks!

def battle ():
    battle = random.randint(1,2,3,4,5,6,7,8,9,10)
if:
        battle>7
            print("you survived the battle")

else:
    print("you died.")

Aucun commentaire:

Enregistrer un commentaire