This repository was archived by the owner on Apr 1, 2021. It is now read-only.
Create Python-Function-Complex.md#1206
Merged
alayek merged 4 commits intofreeCodeCamp:masterfrom Jul 3, 2016
Merged
Conversation
Python-Function-Complex.md
Outdated
|
|
||
| 1. **Numeric Arguments** | ||
|
|
||
| - When called with two arguments, both being numbers of any numeric type (including complex), this function returns a complex number using both arguments. |
Contributor
Author
|
@atjonathan Is it okay now? |
LGTM 👍@alayek, please take a look. |
Member
|
Am out now, will take a look asap when back.
|
Python-Function-Complex.md
Outdated
| @@ -0,0 +1,54 @@ | |||
| # Python Complex() | |||
|
|
|||
| `complex()` is a built-in function in Python 3 that hanldles the creation of a complex number according to the arguments passed. It returns a complex number with the value `real + imag*1j` when called in form of `complex(real, imag)` or converts a string or number to a complex number. | |||
Member
There was a problem hiding this comment.
Since this is a beginners' article, I would recommend adding a brief description of what a complex number is.
At the very least, where you first mention complex, link to some external wiki article (say Wikipedia) about what is a complex number.
67 tasks
Member
LGTM 👍Let's |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For issue #819