Simple Nested If Program In Python To Check