Create templates to quickly answer FAQs or store snippets for re-use.
Luckily you can type byte string literals in Python3: base64.b64encode(b'test')
That should make it as neat and simple as in Python2!
Even better than mine! Good catch.
I haven't benchmarked this or anything, but there's also str.encode as an alternative to the bytes constructor.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.