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