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
...