Let me tell you what happened the first time I wrote a loop. I wanted to print numbers from 1 to 10. Simple enough. I had just read about while loops. I thought I understood them. So I wrote this: number = 1 while number 10: print(number) I ran it. Numbers started printing. 1, 2, 3... wait. Same numbers? 1, 1, 1, 1, 1, 1, 1, 1... The terminal filled up. Lines kept coming. The computer fan sta
The Loop That Ate My Computer
Akhilesh·Dev.to··1 min read
D
Continue reading on Dev.to
This article was sourced from Dev.to's RSS feed. Visit the original for the complete story.