How to Convert Python program to Elixir code

thank u for this i think this will help me