Hi Rupert Welcome to the list, if this is your first time here.
You wrote: > aSet = set('a','b','c','bar') Actually, Python isn't quite like that >>> aSet = set('a','b','c','bar') TypeError: set expected at most 1 arguments, got 4 I think you meant perhaps >>> aSet = set(['a','b','c','bar']) Or I think better >>> set(['a','b','c','bar']) {'c', 'a', 'b', 'bar'} I've been using Python for almost 20 years now, and often find myself producing little command line examples like this to check my memory regarding common types. Particularly string formatting and regular expressions. And particularly before posting to a public discussion list. -- Jonathan _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/LL3SBUFGVHNBDU4MVU3OKGC22IB5TDVJ/ Code of Conduct: http://python.org/psf/codeofconduct/