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

 

gaurav1780@gmail.com 02_conditions > is_vertical_line
prev  |  next  |  chance

Define a function that when passed the coordinates of two points, returns True if the line joining them is a vertical line.


is_vertical_line(10, 70, 10, 90) → True
is_vertical_line(20, 50, 40, 50) → False
is_vertical_line(10, 70, 20, 90) → False

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

def is_vertical_line(x1, y1, x2, y2):

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

Copyright Nick Parlante 2017 - privacy