Python Code Challenges Control Flow In C