vendredi 31 juillet 2020

What is the problem with my Python if statement? [duplicate]

I can't figure out why my code here will not run. Can someone tell me if my if statement is wrong somehow?

I've tried using " instead of ' But I don't think it's making any difference. Also tried a number of various ways to write this such as if input() == ('Run') or ('run') or if input() == 'run' etc, nothing will work.

decide == input()
if decide == ('Run') or ('run')
    print("Ha, you are a coward.")

Aucun commentaire:

Enregistrer un commentaire