not
or
and
xor
~
|
&
^
skip
continue
break
pass
assert
for
while
if
exit
range()
input()
len()
list()
What is the output of following code
print( 5 in 515)
True
False
TypeError
ValueError
What will be the output?
x = 10 y = x x = 20 print(y)
10
20
Error
None
+
*
**
//
What is the output?
x = 5 print(bool(x))
5
print(2 ** 3 ** 2)
64
512
256
36
print(input() + input())
print(int(input()) + int(input()))
print(input + input)
print(eval(input))
What is the output of following?
for i in range(3): pass print(i)
0
1
2
What is printed?
i = 1 while i < 4: print(i, end=" ") i += 1 else: print("Done")
1 2 3
Infinite loop
Done
1 2 3 Done
a > b
b == 0
while (b != 0)
a == b
What will be the output of the following code?
for i in range(1,5): if i == 3: break print(i, end=" ")
1 2 3 4
1 2 4
1 2
What will be printed?
i = 0
while i < 3: i += 1 if i == 2: continue print(i, end=" ") else: print("END")
1 2 3 END
1 3
1 3 END