-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[Term Entry] Python - NumPy Built in functions: .zeros() #6944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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.
Hey @SalMin888, thank you for contributing to Codecademy Docs, the entry is nicely written! 😄
I've suggested a few changes, could you please review and modify those at your earliest convenience? Thank you! 😃
numpy.zeros(shape, dtype=float, order='C') | ||
|
||
|
||
## Example |
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.
can you give a one line description of the example
import numpy as np | ||
|
||
array1 = np.zeros(5) | ||
print(array1) | ||
Output: [0. 0. 0. 0. 0.] | ||
|
||
array2 = np.zeros((3, 2), dtype=int) | ||
print(array2) |
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.
please wrap the example in py
block
[[0 0] | ||
[0 0] | ||
[0 0]] |
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.
Please wrap the output in the shell
block
[0 0] | ||
[0 0]] | ||
|
||
|
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.
Please add a ## Codebyte Example block as well. Please note that the codebyte example block is not followed by the output block
@SalMin888 please also sign the CLA |
Co-authored-by: Mamta Wardhani <[email protected]>
hey mamtawardhani did you get the new changes i made? |
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.
Looks good for a second review! 🚀
Description
Issue Solved
Type of Change
Checklist
main
branch.Issues Solved
section.