-4
j'ai essayé ce simple programme Python:dans le programme python
x == 3 print x
mais je reçois cette erreur:
Traceback (most recent call last): File "", line 1, in NameError: name 'x' is not defined
Pourquoi?
'x == 3' ->' x = 3'. –
Vous comparez x avec x == 3 ne le déclarant pas. Essayez x = 3 – BorrajaX
@Phil Frost: Votre compte a-t-il été piraté? http://stackoverflow.com/users/1574959/phil-frost?tab=answers&sort=votes – BorrajaX