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

 

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

Given the values for a, b, and c in a quadratic equation, return the number of solutions: 0, 1, or 2.


howManySolutionsQuad(-2, -6, -3) → 2
howManySolutionsQuad(1, -4, 4) → 1
howManySolutionsQuad(2, -3, 4) → 0

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

def howManySolutionsQuad(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: 175 Post-solution available

Copyright Nick Parlante 2017 - privacy