[docs] Bug
Zachary Ware
zachary.ware+pydocs at gmail.com
Thu Jun 26 19:00:51 CEST 2014
Hi Andrés,
First off, this in not the proper venue for usage questions like this.
This list is meant for discussion or bug reports about the Python
documentation. You would be better served to ask on
python-list at python.org, which is intended for any discussion
pertaining to Python or its usage.
That said...
2014-06-25 19:42 GMT-05:00 Andrés Soto <andresdavidsoto at gmail.com>:
> I am on python 2.7.6 and my program does not run for a SyntaxError: invalid
> syntax with no reason
> if e == 1:
> print "Escudo: Tabla de madera. Usos:",eus
> elif e == 2:
> print("Escudo: Escudo de madera. Usos:",eus
You have an open parenthesis on this line, but no close parenthesis.
Since you're using Python 2.7, you can leave off the parentheses, or
use them, but you can't go half-way :). I would suggest either using
the parentheses anyway for forward-compatibility with Python 3, but
the choice is yours. Note that there is also the "from __future__
import print_function" directive which can make forward-compatibility
even better (and easier).
> elif e == 3:
> print("Escudo: Escudo de piedra. Usos:",eus
And when you fix the line above, this one has the same issue.
I hope this helps, and if you have any follow-up questions, please
forward them to python-list.
Regards,
--
Zach
More information about the docs
mailing list