Don’t cheap out on anything that connects you to the ground.
Feels dangerous to run. What happens if the file already exists and has something important in it?
touch -a
is probably better
The best way to validate an email address is to sent it an email validation link.
Anything outside of that is a waste of effort.
People have already covered the great ones so I will mention one of the more obscure.
https://addons.mozilla.org/en-US/firefox/addon/don-t-fuck-with-paste/
input("question").lower().startswith("t")
is my go to. More fault tolerant and gets the job done
best think like grug
grug even have whole section just for refactor code