Why does it have red squiggly lines under it if it works perfectly fine and no errors happen when I run it?

John Gordon gordon at panix.com
Thu Sep 19 14:51:59 EDT 2013


In <22b99b0a-598f-4500-9de9-5041c2ce2c8f at googlegroups.com> William Bryant <gogobebe2 at gmail.com> writes:

> the word 'def' has  squiggily lines but the program works fine. It says:
> Syntax Error: expected an indented block. - why?

> def restart():

This may be caused by the code before 'def'.  Post the whole program.

-- 
John Gordon                   A is for Amy, who fell down the stairs
gordon at panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"




More information about the Python-list mailing list