What is the output of the following program?
result = lambda x: x * x
print(result(5))
What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
Which of the following is the correct way to find the elements that are present in set a but not in set b?
What is the output of the following Python code?
g = (i for i in range(5))
print(type(g))
def test_var_args(param1, *args):
print (type(args))
test_var_args('delhi', 'noida', 'gurgaon', 'ghaziabad')
What will be the output of the following Python code?
re.split(r'(n\d)=', 'n1=3.1, n2=5, n3=4.565')
Which of the following statements is false about recursion?
>>> a = 4
>>> b = 3.2
>>> a = 8
What will be the output of the following Python code?
class objects:
def __init__(self):
self.colour = None
self._shape = "Circle"
def display(self, s):
self._shape = s
obj=objects()
print(obj._shape)
OnSite
1 Openings
FullTime
Posted 17 days ago