Fahmi8849 Fahmi8849
  • 22-04-2022
  • Computers and Technology
contestada

Python local variable referenced before assignment.

Respuesta :

rawbeen72 rawbeen72
  • 22-04-2022

Answer:

may be you are probably calling the variable name before assigning it..

Explanation:

this error occurs if your program finds the name of variable used first before assigning the value..

example:

....some code..

print(x)

--some code--

x = something

So the print statement uses x variable before assigning the value. This causes error.

Answer Link

Otras preguntas

What do e and f equal?
what is the value of this expression? [(3 5)⋅2−5]⋅3 enter your answer in the box.
veronica is saving money to buy a saddle for her horse that $ 175 she plan to save$ 10 how much she saved each month
In the essay "lifeboat ethics" what object does author garret hardin say environmentalists use as a metaphor for the earth ? A) A Committe B) A Spaceship C) A
what substance makes up 75 to 90% of every cell in the human body?
What is critical to being an active listener
organizing results into a table graph or chart is done during which step of scientific inquiry
what is 261/7 as a mixed number
An iron is made up of particles. What is true about the particles?
Audrey and her friends ordered 4 sandwiches for $6 each, 5 hamburgers for $5 each, and 6 sodas for $3.25 each. How much was their bill?