Write the definition of a function absoluteValue that receives a parameter containing an integer value and returns the absolute value of that parameter.

Write the definition of a function absoluteValue that receives a parameter containing an integer value and returns the absolute value of that parameter.

LANGUAGE:  PYTHON

CHALLENGE:

Write the definition of a function absoluteValue that receives a parameter containing an integer value and returns the absolute value of that parameter.

SOLUTION:


def absoluteValue(int):
return abs(int)

Add comment