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

 

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

Given a number, return its absolute value.


absoluteValue(0) → 0
absoluteValue(1) → 1
absoluteValue(-7) → 7

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

def absoluteValue(number):

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: 100

Copyright Nick Parlante 2017 - privacy