diff --git a/6-functions/31_calculator.py b/6-functions/31_calculator.py index 22b7db1..e63fb00 100644 --- a/6-functions/31_calculator.py +++ b/6-functions/31_calculator.py @@ -13,6 +13,12 @@ def multiply(a, b): def divide(a, b): return a / b +def int_divide(a, b): + return a // b + +def reminder(a, b): + return a % b + def exp(a, b): return a ** b @@ -20,4 +26,6 @@ def exp(a, b): print(subtract(7, 2)) print(multiply(4, 8)) print(divide(9, 3)) +print(int_divide(10,3)) +print(reminder(50,3)) print(exp(2, 3))