Using Nested If Function Python Tutorial