0 votes
in Python by
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

Related questions

0 votes
asked Dec 14, 2019 in Python by sharadyadav1986
0 votes
asked Jan 19, 2021 in Python by SakshiSharma
...