Join Stack Overflow to learn, share knowledge, and build your career. Why do electrons jump back after absorbing energy and moving to a higher energy level? Why was there a "point of no return" in the Chernobyl series that ended in the meltdown? But due to python being dynamically typed language, you can use float(inf) as an integer to represent it as infinity. Why the sum of two absolutely-continuous random variables isn't necessarily absolutely continuous? Python Loop Control, To Infinity and Beyond! What is the point of reading classics over modern treatments? What's the best time complexity of a queue that supports extracting the minimum? Can an exiting US president curtail access to Air Force One from the new president? Does healing an unconscious, dying player character restore only up to 1 hp unless they have been stabilised? Show Answer. Of course it's not strictly, @sshashank124 Or are you asking when the float value. For example you cannot slice a range type.. Leave a comment. javascript – window.addEventListener causes browser slowdowns – Firefox only. Let us take a look at the Python for loop example for better understanding. @sshashank124 In Haskell we use infinite lists all the time. In Python, there is no C style for loop, i.e., for (i=0; i