Respuesta :
Answer:
a)the sum is correctly computed
Explanation:
The syntax of the program is also correct and the variables are declared and initialized in a properly effective and efficient manner. Therefore, we can conclude that the sum will be displayed correctly in the screen and no exceptions will appear.
Answer:
a. The sum is correctly computed
Explanation:
Entering this function;
Counter = 0 rdd = sc.parallelize(data) def increment_counter(x): global counter counter += x rdd.foreach(increment_counter) print ("computed sum: ", and running the program produced the correct calculation for the sum.
This entails that The syntax of the program is also correct and the variables are declared and initialised properly.