This code is working on other IDLE but not on CodeChef. Please help me to solve!

Are you trying to “Run” without Providing “Custom Input”?