Skip to content

Instantly share code, notes, and snippets.

@Ventsislav-Yordanov
Last active February 16, 2019 14:05
Show Gist options
  • Save Ventsislav-Yordanov/73ab4640c60bd73e8c31e4eb62294934 to your computer and use it in GitHub Desktop.
Save Ventsislav-Yordanov/73ab4640c60bd73e8c31e4eb62294934 to your computer and use it in GitHub Desktop.
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