Wrote an article
https://itsmycode.com/how-to-generate-a-random-string-of-a-given-length-in-python/