Logical Function In Python Programming