Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?
mystring="hello"
mystring[2]='j'
print(mystring)
Find the output of the following code:
a=4
b=[1,2,3]
c=a+b[2]
print(c//4)
Which of the following is not a GUI toolkit?
numbers =
[2,
3,
4]
print(numbers)
Deduce the output of the following snippet:
z={2,21,4,7,6,2,4,8}
y=sum(list(filter(lambda x:x%2==0,z)))
print(y)
What is the full form of PEP?
What will be the output of the following code?
for i in range(0,2):
for j in range(0,i+1):
print("#", end="")
To obtain a list of all the functions defined under sys module, which of the following functions can be used?