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 equals -2(-×+3)
Complete the sentences regarding demand. The demand for ________ goods increases with a decrease in income, whereas _________ are goods that cannot be bought or
What effect did the king family have on the fate of kings mothers killer???
PKEASE HELP!!!!!!! what are a few reasons why the south seceded from the union
A secondary source is not useful and should not be used for academic purposes. Please select the best answer from the choices provided T F
the first railroad to carry freight and passengers was the what a. Baltimore and Ohiob. Mohawk and Hudsonc. Pennsylvania and tramway
Pls. Help me answer #3.
Someone plz help I’ll mark brainliest
are people that raise cattle by moving them from place to place
Li rolls a number cube that has sides labeled 1 to 6 and then flips a coin. What is the probability that she rolls an odd number and flips tails? A. 1/2 B. 1/4