Python - Caeser Cipher Not Giving Right Output

Rustom Mody rustompmody at gmail.com
Sat Mar 22 18:29:47 CET 2014


On Saturday, March 22, 2014 7:52:28 PM UTC+5:30, Ian wrote:
> On Mar 20, 2014 9:59 PM, "Dave Angel" <da... at davea.name> wrote:
> >  dtra... 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.

!!!!!
!I forgot that parse!



More information about the Python-list mailing list