id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

crehwinkel@frhsd.com python_functions > quadrantPython
prev  |  next  |  chance

Write a function called quadrantPython that takes a pair of real numbers that indicate the x and y value of a point. This function should return the quadrant that the point lies in. If either the x or y value is 0, the method should return 0.


quadrantPython(3, 4) → 1
quadrantPython(-2, 10.5) → 2
quadrantPython(-4.5, -9) → 3

...Save, Compile, Run (ctrl-enter)

def quadrantPython(x, y):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy