Logical Questions in Python