Python Logical Programs For Single