How is a blank list defined
x=0
What is the output of x == None?
What is the data type of the value (1)?
Which of the following is the correct extension of python file?
Guess the output:
if("test" == "test"):
print("Yes")
else:
print("No")
What will be the output of the following Python code?
a=165
b=sum(list(map(int,str(a))))
print(b)
What is the output of the given code?
s="Abekus"
def fun():
print(s)
fun()
What is the output of the code shown below?
l = [-2, 4]
m = list(map(lambda x: x*2, l))
print(m)
What is the output of the following code?
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
What is the output of the snippet?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
What will be the output of the following Python code?
re.sub('Y', 'X', 'AAAAAA', count=2)
What append do in lists ?
What will be the output of the following Python code?
x = 'abcd' for i in x: print(i) x.upper()
What is the time complexity of the following code?
for i in range(0, 5):
for j in range(0, 10):
print("times")
What will be the output of the following Python code snippet?
a = [1, 4, 3, 5, 2]
b = [3, 1, 5, 2, 4]
a == b
set(a) == set(b)
What is the output of the following code?
numbers = [1, 3, 6]
newNumbers = tuple(map(lambda x: x , numbers))
print(newNumbers)
What is the output of the following code?
text="""
Abekus
helps in improving
my knowledge."""
print(text[1:7])
print("Abekus")
The following python program can work with __________ parameters.
def f(x):
def f1(*args, **kwargs):
print("Sanfoundry")
return x(*args, **kwargs)
return f1
Which type of copy is shown in the following python code?
l1=[[10, 20], [30, 40], [50, 60]]
ls=list(l1)
ls
[[10, 20], [30, 40], [50, 60]]
Which of the following best describes polymorphism?