Python 3编码

  1. Generate a list with angles from 0 to 359 degrees step 2 degrees
  2. Using a for loop calculate other vector with the cosine values of the angle. (I am getting an error in this part - invalid syntax)

    Generate a list with angles from 0 to 359 degreees step 2 degrees

    angles=np.arange(0,360,2)
    print(angles)
    

    Using a for loop calculate other vector with the cosine values of the angles

    for x in cosine=np.cos(radians)
        print(x)