What arithmetic operators cannot be used with strings?
a & b
What will be the output of the following Python code?
x = [12, 34]
print(len(''.join(list(map(str, x)))))
What is the output of the given code?
def fun():
global s
print(s)
s="Abekus"
fun()
print(s)
What will be the output of the following Python code?
a = {1, 2, 3}
a.intersection_update({2, 3, 4, 5})
print(a)
What will be the output of the following Python code?
class test:
def __init__(self, a="Hello World"):
self.a=a
def display(self):
print(self.a)
def test_var_kwargs(farg, **kwargs):
print ("formal arg:", farg)
for key in kwargs:
print ("another keyword arg: %s: %s" % (key, kwargs[key]))
test_var_kwargs(farg=1, myarg2="two", myarg3=3)
OnSite
1 Openings
FullTime
Posted 17 days ago