How to extend a fixed-length Python list by variable number of characters?,list2 = list1 + [''] * (5 - len(list1))