✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Le code suivant
def test():
resultat="hello"
print(resultat)
affiche l'erreur suivante :
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In[39], line 3
1 def test():
2 resultat="hello"
----> 3 print(resultat)
NameError: name 'resultat' is not defined
Quelle proposition permet de corriger cette erreur ?