(Solved):What is the output of print(tuple[2:]) if tuple = ( ‘abcd’, 786, 2.23, ‘john’, 70.2 )? View Answer…



What is the output of print(tuple2:) if tuple = ( ‘abcd’, 786, 2.23, ‘john’, 70.2 )?



The output is: (2.23, ‘john’, 70.2).

The reason behind this is that the print command was instructed to print the value of “tuple” with the index value of 2 and onwards. The starting count of an element in a list is zero, which means the index value of the word ‘abcd’ inside the list is

Scroll to top