Using Nested If Function Python Questions Geeksforgeeks