LearnPy Hub
← Decorators problems
Easy

Never Negative

Write a decorator positive that returns abs() of the function's result. Decorate subtract(a, b) and print subtract(a, b) for two input integers.

Input

Two integers.

Output

One integer.

Sample 1

Input
3
10
Output
7

Sample 2

Input
10
3
Output
7
solution.py
Output appears here
Never Negative · Python practice problem · LearnPy Hub