Which function overloads the + operator?
What type of data is: arr = [(1,1),(2,2),(3,3)]?
s = "\t\tWelcome\n"
print(s.strip())
What will be the output of the following Python code?
x = 'abcd'
for i in x:
print(i.upper())
What will be the output of the following Python code?
True = False
while True:
print(True)
break
>>> # dates are easily constructed and formatted
>>> from datetime import date
>>> now = date.today()
>>> now
What is the purpose of the setattr() function in Python?
Volume? of tesseract is?
def f(x, y):
return x ** y
x = int (raw_input ("length-"))
z = f (x, 4)
print "volume? of the tesseract is %s cm? " % (z)
//length of the tesseract is 3cm
What will be the output of the following code?
class Pencil:
def __init__(self,count):
self.count=count
print(self.count)
class Natraj(Pencil):
def __init__(self,count):
self.count=count
print(self.count)
super().__init__(10)
nt1=Natraj(2)