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

 

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

Given the slopes and y-intercepts for two equations in a system, return how many solutions the system has: none, one, or infinitely many. The equations are guaranteed not to represent vertical or horizontal lines.


howManySolutionsSys(2, 5, -2, 5) → 'one'
howManySolutionsSys(2, 5, 2, 5) → 'infinitely many'
howManySolutionsSys(0.375, 4, 0.375, -2) → 'none'

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

def howManySolutionsSys(m1, b1, m2, b2):

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