Python - Caeser Cipher Not Giving Right Output

Ian Kelly ian.g.kelly at gmail.com
Sat Mar 22 10:22:28 EDT 2014


On Mar 20, 2014 9:59 PM, "Dave Angel" <davea at davea.name> wrote:
>
>  dtran.ru at gmail.com Wrote in message:
> > And I was wondering how I would add the partenthesis because I tried:
> >
> > return numtochar(c1 + c2 (%26)) and it gave me an error.
>
> Please help us to help you by actually showing the traceback.
>  Doesn't matter in this case, but...
>
> What order do you want the add and the modulo to happen?  Use the
>  parentheses to say so.

Ah, but he did. x = y + z (mod m) is a perfectly well-formed math equation.
Not the OP's fault if it doesn't work that way in Python.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140322/37d312ef/attachment.html>


More information about the Python-list mailing list