ch11_activite2_prof.py

Created by manuel-2de-indice2019

Created on October 14, 2019

222 Bytes


from lycee import *
def segment(n):
    compteur=0
    for k in range(n):
        a=uniform(0,10)
        b=uniform(a,10)
        if b-a >5:
            compteur=compteur+1
    return(compteur/n)