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

 

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

Given a linear equation in standard form (Ax + By = C), calculate the y-intercept using the A, B, and C values. If the line is vertical, return "Vertical line!" The division operator is a forward slash (/).


getYIntercept(15, 0, -3) → 'Vertical line!'
getYIntercept(4, 3, 9) → 3
getYIntercept(4, 4, -16) → -4

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

def getYIntercept(A, B, C):

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

Copyright Nick Parlante 2017 - privacy