My first Python script deleted my homework folder because I named a variable 'test'
So I finally started learning Python about 4 months back using one of those free online courses, and I was feeling pretty good after finishing the loops section. Last Tuesday I wrote a tiny script to clean up my downloads folder, mostly renaming files and moving old stuff. I named one variable `test` and then also made a folder called `test` to hold my practice files, which I know now is a terrible idea. The script ran, and it moved 63 files into that folder, including three weeks of homework I hadnt backed up anywhere. I sat there for a second and just laughed, then spent the next hour googling how to undo it. Turns out there's no magic undo button, so I had to pull them from a cloud recycle bin one by one. Has anyone else had a beginner script go rogue on them like that?