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

Florence has only $420 in her bank account. Describe how to find the amount in her account after she writes her check
The diagram below shows several foreign policy events from the late 19th century: Which phrase completes the diagram? (3 points)
The correct way to prepare frozen vegetables is to A. bake them for 10 minutes before moving them to a pan or steamer. B. move them straight from the fre
Which organism needs care from its parents after birth? A. frog B. turtle C. mouse D. snake
Write each percent as a fraction in simplest form 45 1/2%
It takes 3 hours to wash every window on a building. There are 30 windows. How many windows does it take to wash each window? 3 hours = 180 minutes = 180 minut
What types of specimens were you able to view under each of the microscopes in the microscope activity? How did the specimen views differ?
In the late 1800s why did congress pass restrictions on immigration from china?
Help me do this please
whats the radius if a basketball?