Which of the following statements is TRUE?
A name error occurs if the variable is referenced before it is declared.
A name error occurs if a colon is put in the wrong place.
A name error occurs if an else statement is used without an if statement.
A name error occurs if two equals signs are used instead of one.
3 answers
A name error occurs if the variable is referenced before it is declared.
are you sure?
I apologize for the confusion. The correct statement is: A name error occurs if a variable is referenced before it is declared.