print(17 % 3)
What is the output of print 0.1 + 0.2 == 0.3?
How many values are present in the list lst=[i for i in range(-2,2)]
?
What is the output of the following code?
x = lambda a: a**3
y = lambda a, b: a*b
print(y(x(2), 3))
To check whether a string s1 contains another string s2 we use
Which method is used to get an iterator in Python?
What does the statistics.harmonic_mean(data)
function do?
What will be the output of the following Python code?
a={1:"A",2:"B",3:"C"}
b=a.copy()
b[2]="D"
print(a)
Find the output of the following Python code:
def remove_last(a):
return a[-1]
def popping(a):
a.remove(remove_last(a))
a = ['vinay', 'ajay', 'rahul', 'rohit']
popping(a)
print(a)
popping(a)
print(a)