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

At which of these locations is a dietician least likely to work? school theater hospital nursing home
How does an octopus make a screen
during normal mitotic cell division a parent cell having four chromosomes will produce two daughter cells each containing what
A deficiency of which molecule will trigger lactic acid buildup in our muscles? ATP Carbon dioxide Oxygen Water
how many dimes would you need to make $90.10
is the relationship between 6 and the number of 6s 6,641
How do you solve 90.5 divided 7.3?
n is an integer -1 < n < 4 list the possible values of n
During the election for class president 40% of the students order for Jennifer and 60% of the students voted for Kevin 300 students voted in total how many mor
there is my question