• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Python Output Type

Question 11

What is the output of the following code? 

Python3
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

There are 11 questions to complete.

Last Updated :
Take a part in the ongoing discussion