def cerrucho(items=[]):
items.sort()
items1 = items[::2]
items2 = items[1::2]
new = []
for i, e in zip(items1, items2):
new += [e, i]
return new
items = list(range(20))
print(items)
print(cerrucho(items))
To embed this project on your website, copy the following code and paste it into your website's HTML: