Questions

1.Mutable & immutable

2.ordered unordered 

3.Dictonary hashing logic

4.shallow copy vs deepcopy




Sceanrios:

generic 

1.fibanocci serious
2.prime number
3.palidrome
4.factorial

1.flatten nested loop

2.remove duplicates from a list

3.sort a list

4.Find IP address pattern

5.list to dict

6.swap local to remote LLDP output

7.show vrf
input = """admin@DS4000-6036:~$ show vrf
    VRF    Interfaces
    -----  ---------------
    Vrf1   PortChannel1.10
           PortChannel2.10
           PortChannel3.10
    Vrf2   PortChannel1.20
           PortChannel3.10
    Vrf3   PortChannel1.20
    """
#output {'Vrf1': ['PortChannel1.10', 'PortChannel1.30'], 'Vrf2': ['PortChannel1.20'], 'vrf3': [PortChannel1.20]} 


tip: use split strip startswith (string operators)