-
-
Notifications
You must be signed in to change notification settings - Fork 307
Conversation
@@ -0,0 +1,21 @@ | |||
# Python 'pow(x,y)' | |||
|
|||
pow(x, y[, z]) is a built in function in Python 3 to calculate x to the power y and if z is present , returns x to the power y modulo [https://processing.org/reference/modulo.html] z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pow(x, y[, z]) pow(x, y[, z])
built in built-in
@@ -0,0 +1,21 @@ | |||
# Python 'pow(x,y)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-# Python 'pow(x,y)'
+# Python pow(x,y)
Also rename the file:
-Python-Function_POW.md
+Python-Function-Pow.md
|
||
`pow(x, y[, z])` is a built-in function in Python 3 to calculate `x` to the power `y` and if `z` is present , returns `x` to the power `y` [modulo](https://processing.org/reference/modulo.html) `z` | ||
|
||
## Arguments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-## Arguments
+## Arguments
+
Meaning add a new empty line after each heading and each code block.
print(pow(10,-2)) # prints 0.01 | ||
print(pow(4,3,5)) # prints 4 | ||
``` | ||
:rocket: [REPL It!](https://repl.it/CTGi) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-:rocket: [REPL It!](https://repl.it/CTGi)
+:rocket: [Run Code](https://repl.it/CTGi)
@nj4710 thanks for the update, I made a little adjustment for the repl, we changed them to Run Code on all pages now. Also, could you link this article to the Python Functions one? They are in alphabetical order there. |
Should I add power function in that article? |
Yes please. Just add the link there and change the repl text and I'll merge. |
I have changed the repl text and also added link in the article. Please let me know if there are any more changes |
That was my first patch. Thank You so much |
Thank you for your contribution. |
* Create Python-Function-POW.md For issue freeCodeCamp#819 * Update and rename Python-Function_POW.md to Python-Function-Pow.md * Update Python-Function-Pow.md * Update Python-Function-Pow.md * Update Python-Function-Pow.md
For issue #819