´I\'m new to programming in python and I can\'t get this algorithm, please, someone to help me´ ´I have tried to perform with this code but it does not come out´