Syntax error of getindex in my code

This is the second topic from you that looks like homework.

It is fine to ask about homework here, but please check our (currently informal) homework policy, and invest some time in learning the basics of the language first, otherwise your experience with Julia may be needlessly frustrating. If your course has a TA, that person could also be a valuable resource.

2 Likes