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

 

amgreyson@gmail.com algebra-1 > whichQuadrantWithLists
prev  |  next  |  chance

Given a list representing an ordered pair, determine its position on the coordinate plane, and return one of the following strings as the result: 'origin', 'x-axis', 'y-axis', 'Quadrant I', 'Quadrant II', 'Quadrant III', 'Quadrant IV'.


whichQuadrantWithLists([0, 0]) → 'origin'
whichQuadrantWithLists([0, 5]) → 'y-axis'
whichQuadrantWithLists([-3, 0]) → 'x-axis'

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

def whichQuadrantWithLists(orderedPair):

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: 175 Post-solution available

Copyright Nick Parlante 2017 - privacy