I am trying to execute this simple lines of code, but keep getting an undef error, although I explicitly define my variable to be global.
global t = 1;
for i in 1:10
ERROR: UndefVarError: t not defined
I am using Julia 1.1.0. Can you help me understand what I am doing wrong.