[Tutor] Str Method
Mark Lawrence
breamoreboy at yahoo.co.uk
Thu Nov 1 22:11:07 CET 2012
On 01/11/2012 15:34, Ashley Fowler wrote:
> Hello I am trying to add a str method to a Set ADT implementation to allow a user to print the contents of a set. However the resulting string should look like that of a list. except I am suppose to use curly brackets to surround the elements.
>
> For an example...
>>>> set1 = Set()
Please tell us what this Set() is, then we'll attempt to answer your
questions.
--
Cheers.
Mark Lawrence.
More information about the Tutor
mailing list