Assignment 7 - Global Variables

Assignment 7 - Global Variables

by Ting Tam -
Number of replies: 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?

In reply to Ting Tam

Re: Assignment 7 - Global Variables

by 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.