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

 

amgreyson@gmail.com > isHorizontal
prev  |  next  |  chance

Given two distinct ordered pairs, (redX, redY) and (whiteX, whiteY), return whether the line that passes through them is horizontal or not horizontal.


isHorizontal(-3.0, 7.0, 9.0, 3.0) → 'not horizontal'
isHorizontal(4.0, -5.0, 4.0, -5.0) → 'horizontal'
isHorizontal(-3.0, 8.0, -35.0, 8.0) → 'horizontal'

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

def isHorizontal(redX, redY, whiteX, whiteY):

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

Copyright Nick Parlante 2017 - privacy