Python Virtual Training For Arcesium - Module II

Sep 20-24, 2021 Vikrant Patil

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

© Pipal Academy LLP

Day 1

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

create a notebook with name module2-day1

Recap

max, min, sorted

Modules

Iteration patterns

Example

List comprehensions

newlist = []

for item in oldlist:
    x = do_operation(item) # do_operation is some function
    newlist.append(x)
newlist = [do_operation(item) for item in oldlist]
1   1 
2   4
3   9
4   16