What is the boolean value of -1?
Where is function defined?
The function complex(‘2-3j’) is valid but the function complex(‘2 – 3j’) is invalid.
What will be the output of the following Python code?
print('xyxxyyzxxy'.lstrip('xyy'))
What will be the output of the following Python code?
a={1:5,2:3,3:4}
print(a.pop(4,9))
What is difference between range and xrange ?
What will be the output of the following Python code?
def outer(text):
def inner(text):
print(text)
inner(text)
outer("WELCOME TO ABEKUS")
1_case_style = "pothole is the the best case style"
2_case_style = " & anyone who disagrees is stupid"
print 1_case_style + 2_case_style
What is the output of the following code?
class A:
print("class A")
class B(A):
print("class B")
b = B()
print(isinstance(b, B))
print(isinstance(b, A))