Podcast
Questions and Answers
what is the output when we execute list("python")?
what is the output when we execute list("python")?
what value will be printed by the following code?
my_list=list("python")
print((my_list[3]))
what value will be printed by the following code? my_list=list("python") print((my_list[3]))
what is the output of the following code?
list1=['abc','zee','PYlan']
print(max(list1))
what is the output of the following code? list1=['abc','zee','PYlan'] print(max(list1))
what is the output of the following code?
list1=['abc','zee','PYlan']
print(list1[-2][-1])
what is the output of the following code? list1=['abc','zee','PYlan'] print(list1[-2][-1])
Signup and view all the answers
what is the output of the following code?
list1=[23,44,56,88,90,21]
print(list1[:-3])
what is the output of the following code? list1=[23,44,56,88,90,21] print(list1[:-3])
Signup and view all the answers
what will be the output of the following code?
a=[1,2,3,5,6]
b=a.append(8)
print(b)
what will be the output of the following code? a=[1,2,3,5,6] b=a.append(8) print(b)
Signup and view all the answers
what will be the output of the following code?
list1=[23,90,56,88,90,44]
list1.remove(90)
print(list1)
what will be the output of the following code? list1=[23,90,56,88,90,44] list1.remove(90) print(list1)
Signup and view all the answers
what will be the output of the following code?
list1=[23,49,56,88,90,44]
print(list1.index(3))
what will be the output of the following code? list1=[23,49,56,88,90,44] print(list1.index(3))
Signup and view all the answers
what will be the output of the following code?
list1=[7,8,6]
print(list1*2)
what will be the output of the following code? list1=[7,8,6] print(list1*2)
Signup and view all the answers