DM 8
marduverneuil (0)

from math import
from random import

def lance_flechette():
angle=random()2pi
distance=random()*22.5
return {angle,distance}

def zonetriple():
c=0
for i in range(0;1000000);
{angle,distance}=lance_flechette();
if(10<=distance<=10.8):
c=c+1;
return(c);

    def zone20():
      c=0
      for i in range(0;1000000);
      {angle,distance}=lance_flechette();
      if(9*pi/20<=angle<=11*pi/20):
        c=c+1
        return(c)
You are viewing a single comment. View All
leon332157 (217)

You need to use a comma instead of semicolon.