Assignment 7 - Global Variables

Assignment 7 - Global Variables

par Ting Tam,
Nombre de réponses : 1

Hi Professor,

In the assignment outline it states that we will lose marks if we pass arguments to functions we have created.

However, I am unsure how we can make a utility function that computes the correlation without passing the dataframe into the function.

Am I missing something?

En réponse à Ting Tam

Re: Assignment 7 - Global Variables

par Erik Spence,
No. What is wrong with passing the dataframe into the function? It's only wrong to access global variables if you are accessing them without passing them through the function's argument list.