Using for loop in code block

I’m trying to test a simple for loop in code block. I understand that you need to use [Imperative]{code}
but I keep getting the error: openparen expected error

Any help is appreciated.

hi @harry_zhao

remove the equal sign in return.

like this:


1 Like

Thanks, it did get rid of the error. But it returns just an empty list

Never mind I got it, thanks for the help.

1 Like

You should have marked your answer as the solution. You solved it. :wink: