What's wrong with the 'while' line which is "missing comma or )"?

or and and are not keywords in Julia. You need || and &&.

Also, it will be easier to read your code and therefore easier to help you if you quote it by following the instructions at: PSA: how to quote code with backticks

3 Likes