Python - Caeser Cipher Not Giving Right Output

Ian Kelly ian.g.kelly at
Sat Mar 22 15:22:28 CET 2014

On Mar 20, 2014 9:59 PM, "Dave Angel" <davea at> wrote:
> at 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: <>

More information about the Python-list mailing list