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

The russian ruler who introduced western customs into russian culture was
If dy dx equals cosine squared of the quantity pi times y over 4 and y = 1 when x = 0, then find the value of x when y = 3.
S toddlers (ages 1–3 years) begin to explore their world, they learn that they can control their actions and act on the environment to get results. what is the
According to Hinduism, the final goal of every living thing is
How can an organization develop strategic​ flexibility?
Which of the following reforms in the second new deal helped millions of retired Americans with financial difficulties?
which of these is an entrada sopa torta, helado, maní,
Johnathan has 3/4 pound of grapes. How many 1/8 pound servings can Johnatan make from his grapes
how do you find the volume of a square of 8 by 8
What is the term for common people of the Roman Empire