Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40893
| References | <f55c2474-7312-4366-bde8-d2bb45b22837@googlegroups.com> <apur8aFl9e5U1@mid.individual.net> <79311e2f-37a4-4050-b9fa-d0084c092c5f@googlegroups.com> <apusm7Flmc9U1@mid.individual.net> |
|---|---|
| Date | 2013-03-08 14:40 -0500 |
| Subject | Re: crypto program in python. |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3094.1362771640.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On Fri, Mar 8, 2013 at 2:32 PM, Neil Cerutti <neilc@norwich.edu> wrote: > On 2013-03-08, khudo.anastasia@gmail.com > <khudo.anastasia@gmail.com> wrote: > >> I believe your instructor intends you to start with the > >> skeleton of the program provided above. Complete it by writing > >> the missing functions: menu, decode, and encode. > > > > that is where I confused, I am not sure how to do it, I started > > but nothing works. And the tutorials at the internet not > > helpful. If you could write me the code for the decode > > function, that would be awesome, and other i can do by myself. > > Thanks for being honest. But I cannot agree to write any code for > you. > > Can you post an example of something you tried that didn't work? > > -- > Neil Cerutti > -- > http://mail.python.org/mailman/listinfo/python-list > First, think about how to do this without writing code. alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" key = "XPMGTDHLYONZBWEARKJUFSCIQV" The example shows "python rocks" being turned into AQULEWKEMNJ Do you see from the two strings how that works? If you can see that, write a description of how you encode a message. Bring that back with some code that does the same and you will get help -- Joel Goldstick http://joelgoldstick.com
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
crypto program in python. khudo.anastasia@gmail.com - 2013-03-08 11:01 -0800
Re: crypto program in python. Neil Cerutti <neilc@norwich.edu> - 2013-03-08 19:07 +0000
Re: crypto program in python. khudo.anastasia@gmail.com - 2013-03-08 11:12 -0800
Re: crypto program in python. Neil Cerutti <neilc@norwich.edu> - 2013-03-08 19:32 +0000
Re: crypto program in python. khudo.anastasia@gmail.com - 2013-03-08 11:35 -0800
Re: crypto program in python. Joel Goldstick <joel.goldstick@gmail.com> - 2013-03-08 14:40 -0500
csiph-web