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 d
he_world_is_flat = True
>>> if the_world_is_flat:
... print("Be careful not to fall off!")
...
Be careful not to fall off!
The interpreter also tries to help you, it puts ... at the begging of the
line (instead of >>>) which means it expect some indentation.
msg['From'] = SENDER
msg['To'] = recipient
msg['Subject'] = subject_prefix + SUBJECT
s = smtplib.SMTP(SMTP_SERVER)
s.send_message(msg)
s.quit()
Emil
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
]
> Date: Thu, 3 Jul 2008 12:59:39 +1200
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: [Tutor] Fibonacci series(perhaps slightly off topic)
> CC: tutor@python.org
>
> On 03/07/2008, Emil wrote:
>> I have created a cl
- Emil Agerschou
_
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
___
Tutor maillist - T
I am not totally sure what you mean by traverse. But if you are talking about
how you access the values stored at a key, you simply do it by calling the key
and then it returns the value like this:
>>> d = { 1 : 'a
, 'ef, 'gh']. How do i do this?
- Emil
_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
__