John Gordon <gor...@panix.com> wrote:
> In <22b99b0a-598f-4500-9de9-5041c2ce2...@googlegroups.com> William Bryant
> <gogobe...@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.

It may also have to do with having both tabs and spaces in one source file.
Python cannot recognise the indentation if you do that. Replace al tabs by
4 spaces.

-- 
patrick
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to