From 30a3c5d83aff606f2fcb8730a03f2f895a1ad36a Mon Sep 17 00:00:00 2001 From: harshguptta <48136687+harshguptta@users.noreply.github.com> Date: Wed, 30 Sep 2020 22:46:30 +0530 Subject: [PATCH] Update operator_examples.py --- operator_examples.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/operator_examples.py b/operator_examples.py index 758f632..c629dc1 100644 --- a/operator_examples.py +++ b/operator_examples.py @@ -37,3 +37,7 @@ def as_a_float(num1): def as_an_int(num1): """Returns the integer value of a number passed in.""" return int(num1) + +def exponentiation(num1,num2): + """Returns the value obtained by raising num1 to the power of num2.""" + return (num1**num2)