mardi 6 décembre 2016

Program is not running in python

My else and else if statements are not working. Every time it is showing incorrect syntax, whether I run it in shell or in file.

>>> num = 6
>>> if num == 4:
        print("no is 4")
        else:

Syntax error: invalid syntax

Aucun commentaire:

Enregistrer un commentaire