i=0
while i<3:
print i
i+=1
else:
print 0
What Python function is used to get information about a function?
Deduce the output of the following code:
set1={9,15,24,2}
set2={1,2,5,9,15,8,24}
print(set1-set2)
Which of the following functions creates a Python object?
Any odd number on being AND-ed with ________ always gives 1. Hint: Any even number on being AND-ed with this value always gives 0.
Which class do we inherit from in order to perform functional tests in Django?
list=[1,2,3,4,5]
list.append(6)
Which of the following options is equivalent to the above code?
Identify the correct error in the given code:
import sys
try:
var = 22/0
print(var)
except Exception as e:
print(sys.exc_info()[0])
print(e)
The given code is designed to count the number of odd and even integers entered by the user until the user enters 0 to stop.