How To Make An Algorithm In Python