slice solution in Clear category for Split List by katnic
def split_list(S): half = (len(S) +1) //2 return S[: half], S[ half :]
Aug. 14, 2021
Comments: