logo

Crowdly

After a successful call to the original function , a student adds:   pr...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

After a successful call to the original function, a student adds: 

print(total) 

outside the function. 

They argue: “The function has run, so total now exists and can be printed here.” 

Explain why this reasoning is incorrect, and identify which variable outside the function holds the returned mean. [2 marks]

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на moodle1.maths.ed.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!