Re: [Tutor] Tutor Digest, Vol 103, Issue 82

2012-09-17 Thread Aaron Pilgrim
> Message: 7 > Date: Mon, 17 Sep 2012 21:34:05 +0530 > From: Santosh Kumar > To: tutor > Subject: [Tutor] Trying to get next item from a list > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > Here is the script: > > alphabets = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j

[Tutor] convert ascii to binary

2012-09-12 Thread Aaron Pilgrim
Hello, I am trying to write a small program that converts ascii to binary. I tried using the python reference library section 18.8 but had trouble understanding how to make it work. Here is the code I am currently trying to use: def main(): import binascii myWord = input("E

[Tutor] Beginner Q: What does the double underscore mean __ ?

2012-09-09 Thread Aaron Pilgrim
Hi, I was trying to teach myself some python from a book and I have seen double underscores used. What does the __ mean and how do I know when to use it? for example: __name__==’__main__’ (source) Pilgrim, Mark (2009-10-23). Dive Into Python 3 (Books for Professionals by Professionals) (Kindle L