In Python, if you need to repeatedly append to a string, you should convert it to a list, append your items to that list, and then join the list back into a string after you’ve made all the additions.

Leave a Reply

Your email address will not be published. Required fields are marked *

Generated by Feedzy