samedi 17 décembre 2016

Python if/else and elif

mien = 'beautiful'
if mien = 'stupid':
   print ('you are stupid')
   else:
       if mien = 'beautiful':
       print ('you are right, thank you!')
       else: #line16
           print ('Opps!')

File "..\Playground\", line 16

else:

  ^ 

SyntaxError: invalid syntax

Aucun commentaire:

Enregistrer un commentaire