flight of projectiles ""from math import sincosradians class projectile"""simulates the flight of simple projectiles near the earth' surfaceignoring wind resistance tracking is done in two dimensionsheight (yand distance ( ""def __init__(selfanglevelocityheight)"""create projectile with given launch angleinitial velocity and height ""self xpos self ypos height theta radians(angleself xvel velocity cos(thetaself yvel velocity sin(thetadef update(selftime)"""update the state of this projectile to move it time seconds farther into its flight""self xpos self xpos time self xvel yvel self yvel time self ypos self ypos time (self yvel yvel self yvel yvel def gety(self)"returns the position (heightof this projectile return self ypos def getx(self)"returns the position (distanceof this projectile return self xpos you might notice that many of the docstrings in this code are enclosed in triple quotes ("""this is third way that python allows string literals to be delimited triple quoting allows us to directly type multi-line strings here is an example of how the docstrings appear when they are printedprint(projectile projectile __doc__simulates the flight of simple projectiles near the earth' surfaceignoring wind resistance tracking is done in two dimensionsheight (yand distance (