I have run this code from my terminal, the code is running continuously without any break help me out to fix this