Ok code created which outputs a table like this:
[[' ' ' Scarface ' ' Godfather' ' Avatar']
['Al Pachino ' ' 1' ' 1' ' -1']
['Marlon Brando ' ' -1' ' 1' ' -1']
['De Niro ' ' -1' ' 1' ' -1']
['Sigorny Weaver' ' -1' ' -1' ' 1']]
How do I get the average of a table column by writing a function whose arguments are a table of integer numbers A and a positive integer number i. The function should return the average of non-negative entries of the column i of A.
I want to do this in the most simple readable code which later I can explain to kids.
Thanks Jemma