dimanche 20 octobre 2019

What is wrong with this code of if statement?

a=int(input("ingrese un número: ") if a % 4 == 0:

  print("o")

else: print ("u")

File "/tmp/sessions/bed3871146060436/main.py", line 2 if a % 4 == 0: ^ SyntaxError: invalid syntax

Aucun commentaire:

Enregistrer un commentaire