ways to declare empty set variable

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Tue Feb 12 08:56:30 EST 2008


On Tue, 12 Feb 2008 14:45:43 +0100, Sun wrote:

> then the question is how can I declare a empty set variable as a 'var= []' 
> do to a list variable?

You don't declare variables in Python.  Just create an instance of `set`
and bind it to a name:

var = set()

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list