This is the Gist for the Intermediate Python for Finance Training in London, 28.-29. November 2017.
Additional files (eg Jupyter Notebooks) are found under:
def produit_scalaire(X, Y): | |
"""retourne le produit scalaire de deux listes de même taille""" | |
"<votre_code>" | |
z=zip(X,Y) | |
L=[] | |
for a,b in z: | |
L.append(a*b) | |
return sum(L) |
# sorting of several lists | |
def multi_tri(listes): | |
"<votre_code>" | |
for x in listes: | |
x.sort() | |
return listes | |
# sorting of several lists in different directions |