from random import * def aire_parabole(n): succes = 0 for i in range(n): x = random() y = random() if y < x*x: succes += 1 return succes/n print(aire_parabole(1000))