Translated version of Python Programming