Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40892

Re: crypto program in python.

Newsgroups comp.lang.python
Date 2013-03-08 11:35 -0800
References <f55c2474-7312-4366-bde8-d2bb45b22837@googlegroups.com> <apur8aFl9e5U1@mid.individual.net> <79311e2f-37a4-4050-b9fa-d0084c092c5f@googlegroups.com> <apusm7Flmc9U1@mid.individual.net>
Message-ID <c3adc96d-5451-496b-b2d6-57e53244d62a@googlegroups.com> (permalink)
Subject Re: crypto program in python.
From khudo.anastasia@gmail.com

Show all headers | View raw


On Friday, March 8, 2013 2:32:24 PM UTC-5, Neil Cerutti 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

print (' SECRET DECODER MENU')
print ('     1) Encode')
print ('     2) Decode')
print ('     3) Quit')

response = raw_input (" What do you want to do? ")
print response

import alpha

def menu():
  while response is "1" or "2" or "3":
    if response not in ('1', '2', '3'):
      print ("I don't know what you want to do...")
      continue

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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