I\'m pretty new to python and programming in general. and I have this function I made for code wars. The function works but i want to learn how to make it more efficient and cle