Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
1D Slicing with above numpy array..print[5,15]
Home
NumPy
1D Slicing with above numpy array..print[5,15]
+2
votes
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
1D Slicing with above numpy array..print[5,15]
1d-slicing
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 4, 2021
by
sharadyadav1986
num = np.array([5,15,25,35]) if not added
print(‘\n first and third position : ‘,num[0:2])
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
+2
votes
Q: 1D Slicing with above numpy arra..print[5,15,25,35]
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
slicing
+2
votes
Q: What is 1d indexing? define one ex : num = np.array([5,15,25,35])?
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
1d-indexing
+1
vote
Q: Print reshape devide into array like 2 array with 5 values
asked
Jul 9, 2021
in
NumPy
by
rajeshsharma
print-reshape
+2
votes
Q: Print 5 zeros in NumPy
asked
Jul 3, 2021
in
NumPy
by
sharadyadav1986
numpy-print
+2
votes
Q: How to Print Range Between 1 To 15 and show 4 integers random numbers
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
print-range
print-array
+2
votes
Q: how to use shape for 1D Array ?
asked
Jul 3, 2021
in
NumPy
by
sharadyadav1986
1d-array
+2
votes
Q: how to create 1D Array ?
asked
Jul 3, 2021
in
NumPy
by
sharadyadav1986
create-array-numpy
0
votes
Q: How can you initialize a 5*5 numpy array with only zeroes?
asked
Feb 10, 2021
in
Python
by
SakshiSharma
#numpy-array
array-python
numpy-python
python
Python-questions-answers
+2
votes
Q: print row 1 column 1 output will 5
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
print-row
+1
vote
Q: use numpy to generate array of 25 random numbers sampled from a standard normal distribution
asked
Jul 8, 2021
in
NumPy
by
rajeshsharma
generate-array
...