Code Correction: The following code is supposed to count how…

Code Correction: The following code is supposed to count how many even numbers are in a list, but it has errors. Identify and fix ALL the errors. numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] count == 0 for num in numbers if num % 2 = 0: count += 1 print(“Even numbers:” count) Write the corrected code below:

Code Correction: The following code is supposed to count how…

Code Correction: The following code is supposed to count how many even numbers are in a list, but it has errors. Identify and fix ALL the errors. numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] count == 0 for num in numbers if num % 2 = 0: count += 1 print(“Even numbers:” count) Write the corrected code below:

Code Correction: The following code is supposed to calculate…

Code Correction: The following code is supposed to calculate the average of numbers in a list, but it has errors. Identify and fix ALL the errors. def calculate_average(numbers) total = 0 for num in numbers total = total + num average = total / len(numbers return average result = calculate_average[10, 20, 30] print(result) Write the corrected code below: