partie2_ex58.py

Created by cahier-indice-algo-1techno

Created on April 22, 2022

162 Bytes


def esp_jeu():
    G = [50, 0, -20]
    P = [0.125, 0.5, 0.375]
    E = 0
    for k in range(len(G)):
        E = E + G[k] * P[k]
    return E