[x**2 for x in range(10)]
list(map((lambda x:x**2), range(10)))Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
182
Questions
4/10
Page
Pick an option on a question to see the right answer and solution.
[x**2 for x in range(10)]
list(map((lambda x:x**2), range(10)))Select an option to see the answer and solution.
x = [12.1, 34.0]
print(len(' '.join(list(map(str, x)))))Select an option to see the answer and solution.
Select an option to see the answer and solution.
x=100
def f1():
global x
x=90
def f2():
global x
x=80
print(x)Select an option to see the answer and solution.
Select an option to see the answer and solution.
x = [[0], [1]]
print((' '.join(list(map(str, x)))))Select an option to see the answer and solution.
Select an option to see the answer and solution.
x = ['ab', 'cd']
print(len(map(list, x)))Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
square = lambda x: x**2
result = square(5)
print(result)Select an option to see the answer and solution.
lamb = lambda x: x ** 3
print(lamb(5))Select an option to see the answer and solution.
x = [12, 34]
print(len(list(map(int, x))))Select an option to see the answer and solution.
x = ['ab', 'cd']
print(list(map(upper, x)))Select an option to see the answer and solution.
x = 'abcd'
print(list(map([], x)))Select an option to see the answer and solution.
def f(x, y, z): return x + y + z
f(2, 30, 400)Select an option to see the answer and solution.
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)Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.