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

 

timggc@ggc.edu > getAbsValue
prev  |  next  |  chance

Return the absolute value of an integer (e.g. -1 to 1, -42 to 42, 7 to 7 )


getAbsValue(1) → 1
getAbsValue(2) → 2
getAbsValue(3) → 3

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

def getAbsValue(num):

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