On 2/5/2014 10:02 PM, msus...@gmail.com wrote:

if a == 1:
     x = y
else:
     x = z
y = z + y
z = z + 1

While editing this file I accidentally pushed TAB on the line with 'y = z + y'.

In this particular case, remove the indentation with
x = y if a == 1 else z
and indenting the next line is  syntax error.
--
Terry Jan Reedy

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

Reply via email to