Python Virtual Training For Arcesium - Module I - Day 3

Sep 20-24, 2021 Vikrant Patil

These notes are available online at https://notes.pipal.in/2021/arcesium_finop_batch2/

© Pipal Academy LLP

Day 1 | Day 2 | Day 3 | Day 4 | Day 5

We will be using jupyter hub from https://lab2.pipal.in for this training.

login to hub and create a notebook with name module1-day3

Why should functions return a value!

twice(twice(twice(5)))
twice(twice(None))

Some guidelines for writing reusable functions

Style guide

Fucntion Arguments

the order of arguments is important , while calling the function make sure that you pass the arguments in same order as in definition of the function

Examples

Passing Functions as Arguments

problem

Functions returning functions

Lambda expression