if char != alphabet:
should be
if char not in alphabet:
Otherwise you are comparing char with alphabet. What you want to do if to
check if char is in alphabet.
Emil
On Thu, Apr 19, 2018 at 2:39 AM, Roger Lea Scherer wrote:
> I am absolutely stumped. I've tried a number of different scenarios
Hi Roger, and welcome. See my comments below.
On Wed, Apr 18, 2018 at 04:39:27PM -0700, Roger Lea Scherer wrote:
> def encryptor(address):
> encrypted = ""
> for char in address:
> if char != alphabet:
> encrypted += char
> else:
> pos = alphabet.i
I am absolutely stumped. I've tried a number of different scenarios and
copied the answer more than I like, but I still can't figure this out. I
don't want to copy the answer verbatim because then I won't learn.
I'm doing the beginning cipher, mix up the letters routine. I get the
entire Gettysbur