How To Check For Empty Set In Python