Loops are generally aimed to repeat a particular set of statements until a given condition is fulfilled. However, there may be a case when a condition is never fulfilled, as a result of which statements are executed again and again. We call this “Infinite looping”.
Consider the following Python code :
i=1 while(i<11): print(i,end=' ') i+=1
Above code will print counting from 1 to 10. It will terminate when value of I reaches to 11. However, if we forgot to write the last statement (i=i+1), then, loop will never terminate and hence will become an infinite loop.