r/Python • u/gabriel_GAGRA • Aug 17 '26
Discussion What are some Python automations you built for your life?
What Python scripts/projects did you built to use on a day to day basis? Or maybe someone else built it, but it’s useful for your personal life in some way
I think the “projects ideas” thread is really missing those useful opportunities
I myself thought about automating tax calculations, but still didn’t take the time to do it hah
323
Upvotes
View all comments
Show parent comment
2
u/pacopac25 Aug 20 '26 edited Aug 20 '26
No it's putting your program to sleep. It's basically saying "send F13, then do nothing for 30 seconds, then send F13 again, for as long as True is True" A forever loop, since True is always True.
F13 does nothing on most systems, I don't have an F13 key so it's just a keypress that doesn't input anything.
You could enclose it in a
try:and thenexcept KeyboardInterruptwhich would allow you to cleanly terminate it with CTRL-C. Add some other niceties: