Using Nested If Function Python Practice