What will be the output of the following Python code?
What will be the output of the following Python code?
i = 2
while True:
if i%3 == 0:
break
print(i)
i += 2
Which of these in not a core data type?
What is “Hello”.replace(“l”, “e”)?
What arithmetic operators cannot be used with strings?
What will be the output of the following Python code?
d = {0: 'a', 1: 'b', 2: 'c'}
for x in d.values():
print(d[x])
Evaluate the expression given below if A = 16 and B = 15.
What is the output of this expression, 3*1**3?
Which one of the following has the highest precedence in the expression?
What will be the output of the following Python code?
What will be the output of the following Python expression?
What will be the output of the following Python code?
d = {0: 'a', 1: 'b', 2: 'c'}
for x, y in d.items():
print(x, y)
What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
What will be the output of the following Python code?
i = 1
while True:
if i%3 == 0:
break
print(i)
i + = 1
What will be the output of the following Python code?
True = False
while True:
print(True)
break
What will be the output of the following Python code?
for i in range(0):
print(i)
The format function, when applied on a string returns ___________
What will be the output of the following Python code?
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
What error occurs when you execute the following Python code snippet?
Which one of the following has the same precedence level?