How To Write Nested If In Python Coding