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, 22.06.2019 01:00
Search the web for two examples of digital art that you like. the examples must be from different mediums (example: one digital photo and one computer animation not two computer animations). compose an essay for each example you choose about why the piece appeals to you, and identify the medium used.
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing electricity that has a frequency of 60 hz. student a says that this type of electricity is referred to as ac. student b says that in this type of electricity, the electrons flow in only one direction. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
question
Computers and Technology, 24.06.2019 19:50
How to unblock on chrome book? ?
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
What controls can be found on the file tab of microsoft word
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
Questions on the website: 13722360