Split list after 2 values in python
Split list after 2 values in python Question: Given a list like this: list = [‘tree’, ‘grass’, ‘banana’, ‘apple’, ‘fork’, ‘spoon’, ‘dog’, ‘cat’] What would be the best way to go about splitting the list into 2 new lists every 2 values? Results: list_1 = [‘tree’, ‘grass’, ‘fork’, ‘spoon’] list_2 = [‘banana’, ‘apple’, ‘dog’, ‘cat’] …