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

alaska has land are about 1,700,000 sq kilometers. Florida has a land are 1/10 the size of alaska. what is the land area of Florida? explain how u found the ans
Surface currents are caused by a. floods. c. the wind. b. warm water. d. the equator.
explain how the value of 7 in 327,902 will change if you move it to the tens place
What is a benefit of increased physical fitness?
how are journals helpful to scientists
Which is greater 5000 ml or 40L
5/4-3/4 evaluate each expression
Which of the following is an intermediate direction? a. north b. northwest c. south d. east
5% of what number is 65
The sides of a triangle are in the ratio 3:4:5. What is the length of each side if the perimeter of the triangle is 30 cm