fork(6) download
  1. import math
  2.  
  3. a = [0,1]
  4. b = [0.3, -0.17]
  5.  
  6. angle = math.atan2(a[1], a[0]) - math.atan2(b[1], b[0])
  7. angle = angle * 360 / (2*math.pi)
  8. if angle < 0:
  9. angle += 360
  10. print angle# your code goes here
Success #stdin #stdout 0.01s 7896KB
stdin
Standard input is empty
stdout
119.53878226