Fonction F Python Example Code