Podcast Beta
Questions and Answers
which method returns the index of a element in a tuple?
a string or list can be converted to a tuple using ______
find the output of x t=(1,3,7,4,2) x=t[2:-1] print(x)
what is the output of the following code: t=(5,3,3,4,5) x=t[2:-1] print(x)
Signup and view all the answers
what is the output of the following code? z=("asha","hena","rose") print(z[-1:0])
Signup and view all the answers
which of the following is a python tuple?
Signup and view all the answers
the following code will not result in an error mytuple=(1,2,3,4) mytuple.append((5,6,7)) print(len(mytuple))
Signup and view all the answers
what will be the output of the following code? z=('a','b','c','d','Dib') print(max(z))
Signup and view all the answers
what is the output of the following code? z=([1,30],"xyz",2,7) z[0][1]=1 print(z)
Signup and view all the answers
what is the output of the following code? t1=(1,2,4,3) t2=(1,2,3,4) print(t1
Signup and view all the answers