0

I apologize if this question is already asked but i am not able to find the answer. I have a list of elements. I wanted to group elements for every 4 elements in the array. Example:

my_list = ["A","B","C","D","E","F","G","H",....]

result = [{"A","B","C","D"},{"E","F","G","H"},....]
Gautam
  • 255
  • 4
  • 18

0 Answers0