in Technology by

What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?

1 Answer

0 votes
by

It will print elements starting from 2nd till 3rd. Output would be (786, 2.23).

Related questions

0 votes
    What is the output of print tuple + tinytuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 ) and tinytuple = (123, 'john')?...
asked Nov 24, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tuple[2:] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked Nov 24, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tuple[0] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tuple if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print list[1:3] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print list1 + list2, if list1 = [ 'abcd', 786 , 2.23, 'john', 70.2 ] and ist2 = [123, 'john']?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print list[2:] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print list[0] if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print list if list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tinytuple * 2 if tinytuple = (123, 'john')?...
asked Nov 24, 2020 in Technology by JackTerrance
0 votes
    What is the output of print tinylist * 2 if tinylist = [123, 'john']?...
asked Nov 23, 2020 in Technology by JackTerrance
0 votes
    Consider a list2 with values 70,60,50. What will be the output statements considering that the above object has ... print(list2*3) Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper()) a)a B C D b) a b c d c) error d)A B C D...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i) a) 4 3 2 1 b) error c) 1 2 3 4 d) none of the mentioned...
asked Jan 2, 2023 in Technology by JackTerrance
0 votes
    What is the output of for x in [1, 2, 3]: print x?...
asked Nov 26, 2020 in Technology by JackTerrance
...