Computers and Technology, 12.11.2020 04:20 Jasminanai42
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)
Answers: 1
Computers and Technology, 21.06.2019 22:30
Aprovides legal protection for something an individual has created
Answers: 1
Computers and Technology, 22.06.2019 07:30
What type of computer network ensures high security ?
Answers: 1
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
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
The following code has multiple syntax and/or logical errors in it. Fix all the errors on the code g...
Chemistry, 29.01.2020 15:00
Mathematics, 29.01.2020 15:00
Chemistry, 29.01.2020 15:00
Mathematics, 29.01.2020 15:00
Mathematics, 29.01.2020 15:00
Mathematics, 29.01.2020 15:00
Social Studies, 29.01.2020 15:00
Chemistry, 29.01.2020 15:00
Social Studies, 29.01.2020 15:00
Mathematics, 29.01.2020 15:00
History, 29.01.2020 15:00
Chemistry, 29.01.2020 15:00
Chemistry, 29.01.2020 15:00
Mathematics, 29.01.2020 15:00