Which of the following operator has highest precedence.
What is the output of following :
no = ['Hey','hello']
print(no[0]+no[1])
Given the list [2445, 133, 12454, 123], what is the maximum value in the list?
What will be the output of the following Python code?
>>>list("a#b#c#d".split('#'))
What will be the output of the following Python code?
>>>m = [[x, x + 1, x + 2] for x in range(0, 3)]
What is the output of the given code?
x=1000000000000000000000000000000000000
x=x+1
print(x)
What will be the output of the following Python code?
class A():
def disp(self):
print("A disp()")
class B(A):
pass
obj = B()
obj.disp()
What will be the output of the following Python code?
class Demo:
def __init__(self):
self.a = 1
self.__b = 1
def display(self):
return self.__b