Login
Remember
Register
Ask a Question
What is the output of the following code?
0
votes
asked
Feb 11, 2020
in
Python
by
rahuljain1
What is the output of the following code? Consider Python 2.7.
print tuple[1:3] if tuple == ( 'abcd', 786 , 2.23, 'john', 70.2 ) else tuple()
( 'abcd', 786 , 2.23, 'john', 70.2 )
abcd
(786, 2.23)
None of the above
#python-code
Python-questions-answers
Please
log in
or
register
to answer this question.
0
Answers
...