Skip to content

Update P05_NumpyArrayManipulation.py#2

Open
Hassan-057 wants to merge 1 commit into
masterfrom
Hassan-057-patch-2
Open

Update P05_NumpyArrayManipulation.py#2
Hassan-057 wants to merge 1 commit into
masterfrom
Hassan-057-patch-2

Conversation

@Hassan-057

Copy link
Copy Markdown
Owner

No description provided.

@qwerty22342

qwerty22342 Bot commented Nov 23, 2024

Copy link
Copy Markdown

Numpy/P05_NumpyArrayManipulation.py

To avoid confusion and potential errors, ensure variable names are consistent throughout the code.
Create Issue

    print(myArrayReshaped)

Adding a space after commas in print statements enhances readability.
Create Issue

    print([0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28])

print(myArrayReshaped)
print(myAeshaped)

# [[ 0  2  4]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To avoid confusion and potential errors, ensure variable names are consistent throughout the code.

Suggested change
# [[ 0  2  4]
print(myArrayReshaped)

@@ -8,7 +8,7 @@
print(myArray) # [ 0  2  4  6  8 10 12 14 16 18 20 22 24 26 28]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a space after commas in print statements enhances readability.

Suggested change
print([0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant