Last active
February 16, 2019 14:05
-
-
Save Ventsislav-Yordanov/73ab4640c60bd73e8c31e4eb62294934 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def raise_value(number, power): | |
""" | |
Raise number to the power | |
Parameters | |
---------- | |
number : int, the number we want to raise | |
power : int, the power we want to use | |
""" | |
return number ** power | |
print(raise_value(2, 3)) | |
print(raise_value(number = 2, power = 3)) | |
print(raise_value(power = 2, number = 3)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment