would still recommend Learning Python.
Message: 5
Date: Mon, 14 Nov 2005 17:11:16 +1300
From: John Fouhy <[EMAIL PROTECTED]>
Subject: Re: [Tutor] Converting a List/Tuple to delimited string
To: Tutor
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1
On
I have a list of strings and wanted to output them as a single delimited
string.
Eg
('ab','cd','ef') becomes "ab:cd:ef"
My first attempt was to do it as a function:
def Addsomething(a):
y = []
for x in a:
y.append( x + ':')
return "".join(y)
I then conv
I have created a List within a class. If I try and append to the list using
the set function using the property value my variable stops being a list.
Can anyone explain why the set function called by the class property does
not append to the list?
Here is some sample code:
class ShoppingBag:
Hi
In the example below I would like the program to stop if I forgot to
provide an argument . Though I could do all my processing indented under
the else statement, I was wondering if there was a command that would allow
me to halt the program execution early.
Regards,
Roy
# Example program