Feb 11, 2020 in Python
Q: 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
Dec 14, 2019 in Python
0 votes
Jun 24, 2020 in Python
...