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

98 divided by 7 please show how
factor: 6x+36=  how do I solve this problem
-2n-h(4rx-6s)-3rx+3s i need help doing this problem
the perimeter of a rectangle is 120 meters. If the length of the rectangle is 20 meters more than the width, what are the dimensions of the rectangle.
-2n-h(4rx-6s)-3rx+3s i need help doing this problem
What are the unit rates for  4/8 , 5/25, 36/6, 14/21, 18/30, 28/16, 56/35, 45/108, 12/42, 39/26
-2n-h(4rx-6s)-3rx+3s i need help doing this problem
Juan is thinking of two numbers. He says that 3 times the first number minus the second number is 118. In addition, two times the first number plus the second n
What are the unit rates for  4/8 , 5/25, 36/6, 14/21, 18/30, 28/16, 56/35, 45/108, 12/42, 39/26
Find the slope of the ski run that descends 15 feet for every horizontal change of 24 feet