Example Of An Algorithm In Python