https://keroseneheaterreview.blogspot.com/2024/05/python-code-works-fine-first-time-but.html
Python Code Works Fine First Time, But Fails Second Time