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

 

konstans@stuy.edu all > evalQuadratic
prev  |  next  |  chance

Write a function that evaluates a quadratic equation in the form Y = aX^2 + bX + C. It accepts the parameters in the order a b c x, and returns the y value.


evalQuadratic(1, 0, 3, 1) → 4
evalQuadratic(1, 2, 3, 1) → 6
evalQuadratic(1, 0, 3, 2) → 7

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

def evalQuadratic(a,b,c,x):

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

Copyright Nick Parlante 2017 - privacy