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

 

jgreenawalt@ccboe.com ccpspython > slopeFromStandardForm
prev  |  next  |  chance

Given the coefficients in standard form of a linear equation return the slope of the line. Standard form linear equations are in the form ax + by + c = 0.


slopeFromStandardForm(4.0, 1.0, 0.0) → -0.25
slopeFromStandardForm(1.0, -2.0, 3.0) → 2.0
slopeFromStandardForm(0, 3.0, 1.0) → 0

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

def slopeFromStandardForm(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: 112 Post-solution available

Copyright Nick Parlante 2017 - privacy