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

 

mysteryLinear


Write the mysteryLinear() function that matches the input output table below
x | mysteryLinear()
------------
-1 | -5
0 | -7
1 | -9
2 | -11


mysteryLinear(-1) → -5
mysteryLinear(0) → -7
mysteryLinear(1) → -9

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

def mysteryLinear(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: 101 Post-solution available

Copyright Nick Parlante 2017 - privacy