Logical Function In Python Geeks