I've been looking for the answer to this question for a long time, but I couldn't find a solution. I am waiting for your help, thank you in advance. With python
list1 = ["data1","data2","data3","data4","data5"]
output = [
[list1[0],list1[1]],
[list1[2],list1[3]],
[list1[4]]
]
output=[["data1","data2"],["data3","data4"],["data5"]]
How can it provide this output? Can I create a temporary variable in a list and do that.