Question: Call the function with inputs that correspond to the origin point. The function call should evaluate to the string 'origin'. def quadrant ( x ,
Call the function with inputs that correspond to the origin point. The function call should evaluate to the string 'origin'.
def quadrantx y:
Return the quadrant of a point xy on a twodimensional plane.
There are three special cases that are not considered members of a
specific quadrant:
Point is the 'origin'.
Nonorigin points with y are on the xaxis'.
Nonorigin points with x are on the yaxis'.
Examples:
quadrant returns 'origin'
quadrant returns xaxis'
quadrant returns yaxis'
quadrant returns I
quadrant returns II
quadrant returns 'III'
quadrant returns IV
Parameters:
x: xcoordinate
y: ycoordinate
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
