# Using a list comprehension: l = [x * 2 for x in l] # Using a lambda function with map: l = map(lambda x: x * 2, l)
b_list = [2, 3, 4] multiplied_list = [value * 3 for value in b_list] print(multiplied_list)