Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
Which of the following is valid string slicing syntax?
Find the output of the following code:
from itertools import accumulate
x=1
print(list(accumulate(range(x))))
What is the output of the following?
x = abcd
print(list(map(list, x)))
a = True
b = False
c = True
if not a or b:
print "a"
elif not a or not b and c:
print "b"
elif not a or b or not b and a:
print "c"
else:
print "d"
What will be the output of the following Python code?
i = 1
while True:
if i % 7 == 0:
break
print(i)
i += 1
What is the result of the following code?
def fun():
s = ""
for i in "Abekus":
s += i
yield s
print(list(fun()))
Which of the following cannot be pickled?
x = 50
def func():
global x
print('x is', x)
x = 2
print('Changed global x to', x)
func()
print('Value of x is', x)