Q.1.
What will be the output of the following Python code? elements = [def incr(x): return x+1 print(list(map(elements, incr)))
Q.2.
What will be the output of the following Python code? elements = [def incr(x): return x+1 print(list(map(incr, elements)))
Q.3.
What will be the output of the following Python code? x = ['ab', 'cd'] print(list(map(upper, x)))
Q.4.
What will be the output of the following Python code? def to_upper(k): return k.upper() x = ['ab', 'cd'] print(list(map(upper, x)))
Q.5.
What will be the output of the following Python code? def to_upper(k): return k.upper() x = ['ab', 'cd'] print(list(map(to_upper, x)))
Q.6.
What will be the output of the following Python code? def to_upper(k): k.upper() x = ['ab', 'cd'] print(list(map(to_upper, x)))
Q.7.
What will be the output of the following Python code? x = ['ab', 'cd'] print(map(len, x))
Q.8.
What will be the output of the following Python code? x = ['ab', 'cd'] print(list(map(len, x)))
Q.9.
What will be the output of the following Python code? x = ['ab', 'cd'] print(len(map(list, x)))
Q.10.
What will be the output of the following Python code? x = ['ab', 'cd'] print(len(list(map(list, x))))