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

 

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

Given the Python function called g(x), define g(x) to be -x^2.


g(2) → -4
g(-6) → -36
g(0.5) → -0.25

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

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

Difficulty: 125 Post-solution available

Copyright Nick Parlante 2017 - privacy