On Wed, Jul 18, 2012 at 7:44 AM, Steven D'Aprano wrote:
> Alexandre Zani wrote:
>>
>> On Wed, Jul 18, 2012 at 6:09 AM, Steven D'Aprano
>> wrote:
>>>
>>> Alexandre Zani wrote:
>>>
>>>> What you want to write i
On Wed, Jul 18, 2012 at 6:09 AM, Steven D'Aprano wrote:
> Alexandre Zani wrote:
>
>> What you want to write is this:
>>
>> elif name == "John Cleese" or name == "Michael Palin":
>
>
> elif name in ("J
On Tue, Jul 17, 2012 at 10:21 PM, Andre' Walker-Loud
wrote:
> Hi Santosh,
>
> On Jul 17, 2012, at 10:09 PM, Santosh Kumar wrote:
>
>> Here is my script:
>>
>> name = raw_input("What's your name? ")
>>
>> if name == "Santosh":
>>print "Hey!! I have the same name."
>> elif name == "John Cleese"
On Tue, Jul 17, 2012 at 10:09 PM, Santosh Kumar wrote:
> Here is my script:
>
> name = raw_input("What's your name? ")
>
> if name == "Santosh":
> print "Hey!! I have the same name."
> elif name == "John Cleese" or "Michael Palin":
> print "I have no preference about your name. Really!!"
>
On Mon, Jul 16, 2012 at 5:09 AM, Matthew Ngaha wrote:
> Hi all. I'm new to Python and Programming in general. I've started out with
> Python for beginners, and so far so good. My friend who i might add, is not
> a programmer but has had experience in the world of programming (i dont know
> how muc
On Sat, Jul 14, 2012 at 8:32 PM, Santosh Kumar wrote:
> I am reading How to Think Like a Computer Scientist with Python. There
> is a script in the exercise:
>
> if "Ni!":
> print 'We are the Knights who say, "Ni!"'
> else:
> print "Stop it! No more of this!"
>
> if 0:
> print "And now
On Wed, Jul 11, 2012 at 8:31 AM, James Bell wrote:
> I'm fairly new to software development in an enterprise environment I'm
> constantly hearing the term "build deployment" and do no want to ask what it
> means since it seems simple. I cannot find a definition online.
>
> if the word is context s
On Tue, Jul 10, 2012 at 1:32 PM, Prasad, Ramit
wrote:
>> You should avoid using the global statement.
>>
>> In your case, I would think you could just add an argument to the method:
>>
>> class MyObj(object):
>> def __init__(self, arg):
>> self.arg = arg
>> def my_func(self, new_ar
On Tue, Jul 10, 2012 at 12:11 PM, Chris Hare wrote:
>
> I know they are bad. That is why I would prefer not to use it, but I am not
> sure how else to handle this problem.
>
> In this app, the user must log in. Once authenticated, they have a userid
> stored in the SQLite database. Before spl