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
What is slicing?
Home
Python Flask
What is slicing?
0
votes
asked
May 10, 2023
in
Python Flask
by
john ganales
What is slicing?
slicing
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 10, 2023
by
john ganales
Slicing is a technique that allows us to retrieve only a part of a list, tuple, or string. For this, we use the slicing operator [].
>>> (1,2,3,4,5)[2:4]
(3, 4)
>>> [7,6,8,5,9][2:]
[8, 5, 9]
>>> 'Hello'[:-1]
‘Hell’
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
0
votes
Q: In Python what is slicing?
asked
Jan 1, 2021
in
Python
by
SakshiSharma
#slicing-python
slicing
Python-questions-answers
+2
votes
Q: 1D Slicing with above numpy array..print[5,15]
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
1d-slicing
0
votes
Q: “slicing” in Python?
asked
Jun 28, 2020
in
Python
by
Robindeniel
#what-is-slicing
#python-slicing
#slicing-python
Python-questions-answers
0
votes
Q: What is the difference between preemptive scheduling and time slicing in Java?
asked
May 30, 2020
in
JAVA
by
Robindeniel
#java-preemptive
#java-scheduling
#java-time-slicing
#time-slicing-java
#preemptive-scheduling-java
Java-questions-answers
0
votes
Q: Define slicing in Python?
asked
May 16, 2020
in
Python
by
Robindeniel
#python-slicing
Python-questions-answers
0
votes
Q: What is meant by bit plane slicing in image processing?
asked
May 2, 2020
in
Image processing
by
Robindeniel
#image-processing-bit-plane
#bit-plane-slicing
0
votes
Q: What is gray level slicing in Image processing
asked
May 2, 2020
in
Image processing
by
Robindeniel
#image-gray-level
gray-level-clicing
0
votes
Q: What Is Slicing In Python?
asked
Dec 14, 2019
in
Python
by
sharadyadav1986
#python-slicing
Python-questions-answers
0
votes
Q: What is network slicing?
asked
Sep 2, 2019
in
5G Network
by
Venkatshastri
#5g-gauges
#nexus-5g
#5g-net
#5g-connection
#5g-sverige
#5g-discussion
#5g-optical-network
#5g-network-nodes
#5g-network
#5g-dangers-snopes
#iphone-5g
...