Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions operator_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)