I want to convert a list like this: L = ['ad', 'bc', 'gh', 'kj', 'ws', 'er', 'th']
into [('ad', 'bc', 'gh', 'kj', 'ws'), ('er', 'th', None, None, None)] using python 3
The tuples will contain the equal amount of elements even if the list doesn't provide enough elements. So if i have 6 elements, i will get two tuples, one full of 5 elements and the other will have only one element and 4 Nones. But if i have only 5 elements i should get a list of one tuple containing 5 elements.
i tried zip but it doesn't give me the desired result