[Tutor] using in over several entities

Alan Gauld alan.gauld at btinternet.com
Fri Aug 24 19:13:14 CEST 2007


"Chris Calloway" <cbc at unc.edu> wrote 

> >>> dbs = set(['oracle','mysql','postgres','infomix','access'])
> >>> mine = set(['oracle','mysql','bdb'])
> >>> dbs & mine
> set(['oracle', 'mysql'])
> >>> dbs - mine
> set(['access', 'infomix', 'postgres'])

Interesting. I didn't know about the & and - set operations.
Thanks for the pointer.

Alan G



More information about the Tutor mailing list