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, 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
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
Computers and Technology, 25.06.2019 01:30
What controls can be found on the file tab of microsoft word
Answers: 1
The following code has multiple syntax and/or logical errors in it. Fix all the errors on the code g...
Chemistry, 25.01.2020 14:31
Biology, 25.01.2020 14:31
Mathematics, 25.01.2020 14:31
Geography, 25.01.2020 14:31
Mathematics, 25.01.2020 14:31
Biology, 25.01.2020 14:31
Physics, 25.01.2020 14:31