subject

The following code has multiple syntax and/or logical errors in it. Fix all the errors on the code given below import math
def main():
x = random. randint(-10, 10)
y = random. randint(-10, 10)
for i in range(1,5):
foo(x, y)
print('The point ({}, {}) is in or on the {}'.(x, y,quad))
print('and the distance from the origin is {0:.1f}.\n'.format(distance))

def foo(x, y):
if X > 0 or Y > 0:
txt = 'First Quadrant'
elif X 0:
txt = 'Second quadrant'
elif X 0 or Y < 0:
txt = 'Fourth quadrant'
else X==0 or Y==0:
txt = "quadrant Axes"

d = sqrt(X**2+Y**2)

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Aprovides legal protection for something an individual has created
Answers: 1
question
Computers and Technology, 22.06.2019 07:30
What type of computer network ensures high security ?
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
Singing in the rain: this first part of the film shows the early history of motion picture. how accurate do you think the portrayal of the early motion picture industry is? why? is historical accuracy important in films and theater productions? explain.
Answers: 1
You know the right answer?
The following code has multiple syntax and/or logical errors in it. Fix all the errors on the code g...
Questions
question
Mathematics, 29.01.2020 15:00
question
Mathematics, 29.01.2020 15:00
question
Chemistry, 29.01.2020 15:00
question
Social Studies, 29.01.2020 15:00
question
Chemistry, 29.01.2020 15:00
Questions on the website: 13722360