What will be the output of the “hello” +1+2+3?
What will be the output of the following Python code?
import sys
sys.argv
Suppose list1 is [1, 3, 2], What is list1 * 2?
Guess the output of the following code that prints the Fibonacci series of length 7.
a = {1, 2, 3}
a.intersection_update({2, 3, 4, 5})
a
What is the output of the following code?
cities=['Mumbai','New Delhi','Indore']
for i,city in enumerate(cities):
print(i,city)
Welcome on Abekus.
You can learn at Abekus. You can see the leaderboard and you should share it across learners. Your referral will count. Feel free and learn.
Which of the following options is correct?
formatter = "%r %r %r %r %r"
print formatter %("questions", "seem", "simple", "but", "aren't")
# except this one is very easy
What will be the output of the following Python code?
class father:
def __init__(self, param):
self.o1 = param
class child(father):
def __init__(self, param):
self.o2 = param
obj = child(22)
print "%d %d" % (obj.o1, obj.o2)
Deduce the output of the following code:
x="234"
if x == 234:
print("A")
elif x == "234":
if int(x) > 234:
print("B")
elif int(x) < 234:
print("E")
else:
print("K")
if x == int("234"):
print("U")
else:
print("S")