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
Which statements will result in slice of tuple?
Home
Python
Which statements will result in slice of tuple?
0
votes
asked
May 17, 2019
in
Python
by
Derya
Which statements will result in slice of tuple?
1)a_tuple[::-1] a_tuple[0] =[5]
2)a_tuple[:] a_tuple[::-1]
3)a_tuple[::2] a_tuple[:]
4)a_tuple[0] =[5] a_tuple[::2]
#python
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 25, 2020
by
Jerry
a_tuple[::2] a_tuple[:] and
a_tuple[:] a_tuple[::-1]
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
0
votes
Q: Which of the following will not result in declaring x as datatype of float?
asked
May 17, 2019
in
Python
by
Derya
#python
Python-questions-answers
0
votes
Q: Which of these options could be used in tuple object?
asked
May 17, 2019
in
Python
by
Derya
#python
Python-questions-answers
+1
vote
Q: What is the difference between tuple and dictionary?
asked
Feb 13, 2021
in
Python
by
SakshiSharma
#python
tuple
dictionary
tuple-vs-dictionary
Python-questions-answers
0
votes
Q: What is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
asked
May 16, 2020
in
Python
by
AdilsonLima
#python
Python-questions-answers
0
votes
Q: Which of the following doctest directive is used to ignore part of the result?
asked
Jul 10, 2020
in
Python
by
GeorgeBell
#python
Python-questions-answers
0
votes
Q: Which of the following doctest directive is used to ignore part of the result?
asked
Jun 29, 2020
in
Python
by
Robindeniel
#python-doctest-ellipsis
#python
elipsis
Python-questions-answers
0
votes
Q: Which statements prevent the escape sequence interpretation?
asked
May 15, 2019
in
Python
by
Derya
#python
Python-questions-answers
0
votes
Q: Say s=”hello” what will be the return value of type(s) ?
asked
Jun 13, 2019
in
Python
by
Derya
#python-tutorial
#python
#java
#ball-python
Python-questions-answers
0
votes
Q: Using Pop in list will remove the popped up item.
asked
May 17, 2019
in
Python
by
Derya
#python
Python-questions-answers
0
votes
Q: What will be the output of below text?
asked
May 17, 2019
in
Python
by
Derya
#python
Python-questions-answers
...