Write Syntax For Creating And Replacing Function In Python