mercredi 27 octobre 2021

Why couldn't I type multiple if-statements in a row on python?

why is it showing SyntaxError? I'm totally new to learning programming, can anyone help me out with this simple question, please and thank you in advance.

x=2
if x ==2:
    print("the number is 2.")
if x%2==0:

SyntaxError: invalid syntax

Aucun commentaire:

Enregistrer un commentaire