Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
yield solution in Speedy category for Replace Last by David_Jones
def replace_last(items):
if items:
yield items[-1]
for i in range(len(items)-1):
yield items[i]
Jan. 30, 2020
Comments: