Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Create Python-Function-POW.md #989

Merged
merged 5 commits into from
May 20, 2016
Merged

Conversation

nj4710
Copy link
Contributor

@nj4710 nj4710 commented May 19, 2016

For issue #819

@ghost ghost added QA Python labels May 19, 2016
@ghost ghost self-assigned this May 19, 2016
@ghost ghost added this to the June Summit milestone May 19, 2016
@@ -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
Copy link

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)'
Copy link
Member

@Rafase282 Rafase282 May 19, 2016

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
Copy link
Member

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)
Copy link
Member

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)

@Rafase282
Copy link
Member

@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.

@nj4710
Copy link
Contributor Author

nj4710 commented May 20, 2016

Should I add power function in that article?

@Rafase282
Copy link
Member

Yes please. Just add the link there and change the repl text and I'll merge.

@nj4710
Copy link
Contributor Author

nj4710 commented May 20, 2016

I have changed the repl text and also added link in the article. Please let me know if there are any more changes

@Rafase282 Rafase282 assigned Rafase282 and unassigned ghost May 20, 2016
@Rafase282 Rafase282 merged commit a23b2e4 into freeCodeCamp:master May 20, 2016
@BerkeleyTrue BerkeleyTrue removed the QA label May 20, 2016
@nj4710
Copy link
Contributor Author

nj4710 commented May 20, 2016

That was my first patch. Thank You so much

@Rafase282
Copy link
Member

Thank you for your contribution.

jainaman224 pushed a commit to jainaman224/wiki that referenced this pull request May 20, 2016
* 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants