Advertisement
johnmahugu

accessing_c_code_using_ctypes

Jul 10th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import sample
  2. print(sample.gcd(35,42))
  3. print(sample.in_mandel(0,0,500))
  4. print(sample.in_mandel(2.0,1.0,500))
  5. print(sample.divide(42,8))
  6. print(sample.avg([1,2,3]))
  7. p1 = sample.Point(1,2)
  8. p2 = sample.Point(4,5)
  9. print(sample.distance(p1,p2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement