Skip to content

[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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

SalMin888
Copy link

@SalMin888 SalMin888 commented May 30, 2025

Description

  • We added the numpy.zeros() for Python

Issue Solved

Type of Change

  • Adding a new entry

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@mamtawardhani mamtawardhani self-assigned this May 30, 2025
@mamtawardhani mamtawardhani added new entry New entry or entries numpy NumPy entries status: under review Issue or PR is currently being reviewed labels May 30, 2025
Copy link
Collaborator

@mamtawardhani mamtawardhani left a 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
Copy link
Collaborator

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

Comment on lines 31 to 38
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)
Copy link
Collaborator

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

Comment on lines 40 to 42
[[0 0]
[0 0]
[0 0]]
Copy link
Collaborator

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]]


Copy link
Collaborator

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

@CLAassistant
Copy link

CLAassistant commented May 31, 2025

CLA assistant check
All committers have signed the CLA.

@mamtawardhani
Copy link
Collaborator

CLA assistant check Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.✅ mamtawardhani❌ SalMin888You have signed the CLA already but the status is still pending? Let us recheck it.

@SalMin888 please also sign the CLA

@SalMin888
Copy link
Author

hey mamtawardhani did you get the new changes i made?

@SalMin888 SalMin888 requested a review from mamtawardhani June 6, 2025 09:11
Copy link
Collaborator

@mamtawardhani mamtawardhani left a 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! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new entry New entry or entries numpy NumPy entries status: review 1️⃣ completed status: under review Issue or PR is currently being reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants