1-liner solution in Clear category for Replace Last by Stensen
replace_last = lambda i: i[-1:]+i[:-1] if len(i)>1 else i
Sept. 21, 2020
Comments: