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

why is geocentric theory is not accurate?
Why did The authors of the declaration fail to address the rights of women, native Americans, and African Americans?
how do the nonliving parts of earth's systems provide the basic materials to support life?
Which of the following best describes the American economy at the start of the war?
16 feet perimeter 5 feet long what is the width
Which phrase best describes the US constitution
how to round 446,221 to the nearest ten thousand
Why did the Emancipation Proclamation score big in Europe?
describe the path of energy from the sun to you
simplified form of |3.5-4.7|+5.6