Question

What will be the output of the following Python code? def modify_list(lst):     for i in range(len(lst)):         lst[i] = lst[i] * 2     lst = [0] * len(lst) numbers = [1, 2, 3, 4] modify_list(numbers) print(numbers)

A [2, 4, 6, 8]
B [0, 0, 0, 0]
C [1, 2, 3, 4]
D [0, 0, 0]
E Error
Practice Next

Hey! Ask a query