samedi 26 août 2017

Python 3 : Unexpected indent in 'if'

I am making a questioning program with python 3, I use this code

print ('how old are you?')
age = input ('age :')
if age < 18): print('Okay')

when i run it, there are a message said

if age < (18):
^
IndentationError: unexpected indent

what should i do?

Aucun commentaire:

Enregistrer un commentaire