vendredi 28 août 2020

please explain what is wrong with the else command? [closed]

def main():
    sides = 6
    while rolling:
        roll_againinput("ready to roll? ENTER = Roll.  Q=Quit")
        if roll_again.lower() != 'q':
            num_rolled = roll(sides)
            print ("you rolled a", num_rolled)
            else:
                
                rolling = false
                
    print("thanks for playing")
     main ()
 File "<ipython-input-21-368344836b58>", line 8
    else:
    ^
SyntaxError: invalid syntax

Aucun commentaire:

Enregistrer un commentaire