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

 

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

Given the slopes and y-intercepts for two equations in a system, return True if the system has no solutions, otherwise return False. The equations are guaranteed not to represent vertical or horizontal lines.


hasNoSolution(2, 5, -2, 5) → False
hasNoSolution(2, 5, 2, 5) → False
hasNoSolution(0.375, 4, 0.375, -2) → True

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

def hasNoSolution(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