Add missing square bracket to while loop tutorial

Super small fix. This is my first time using a PR for someone else's repo, let me know if I've done something wrong.