Invalid syntax error when running codes from missing examples files

Thank you! To check, does the blue LED take a long time to start blinking? I tried to do this method a few days ago but it took so long that I thought that I did something wrong.