python functions with examples