DEV Community

loading...

Discussion on: Daily Challenge #124 - Middle Me

rafaacioly profile image
Rafael Acioly • Edited

I was looking for a even better solutions and look what i found;

fill_char = (repeat_quantity // 2) + 1
return middle.center(repeat, fill_char)