I need help with this code in python \'cause this is too slow for me. I\'d like to make this faster but I have no idea how. I think loops have to be less. I have even calcul