ashish chaudhary
Python & AII tried to print a value, but Python says that the name is not defined.
print(score)
CookieSensei starter Q&A · example discussion.
Loading…
I tried to print a value, but Python says that the name is not defined.
print(score)
CookieSensei starter Q&A · example discussion.
A name must be assigned before it is used. Check that you created the variable, spelled it consistently and used the same capitalisation. Score and score are different names. In a notebook, also check whether you ran the cell that creates the variable before the cell that uses it.
score = 10
print(score)
CookieSensei starter Q&A · example discussion.