"Glen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
if int(choice)==2:
else:
  pass

File "./Code.py", line 20
  else:
     ^
IndentationError: expeted an indented block

What am I doing wrong?

As the error trace informs you, Python expexts an indented block. You need to put something between if and else, at least a pass.


Regards

--
/Mikael Olofsson
Universitetslektor (Senior Lecturer [BrE], Associate Professor [AmE])
Linköpings universitet

-----------------------------------------------------------------------
E-Mail: [EMAIL PROTECTED]
WWW: http://www.dtr.isy.liu.se/en/staff/mikael
Phone: +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
-----------------------------------------------------------------------
Linköpings kammarkör: www.kammarkoren.com Vi söker tenorer och basar!


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

Reply via email to