SHARE
TWEET

Untitled

a guest May 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from math import sqrt
  2. first=[]
  3. for z, x in enumerate(map(lambda x: x/1000.000,range(-1000,1000))):
  4.     i=(int(round(z/100.0)),int(round((sqrt(abs(x))+sqrt(1-x**2))*10)))
  5.     if i not in first:first.append(i)
  6. for z, x in enumerate(map(lambda x: x/1000.000,range(-1000,1000))):
  7.     i=(int(round(z/100.0)),int(round((sqrt(abs(x))-sqrt(1-x**2))*10)))
  8.     if i not in first:first.append(i)
  9. array=[[" " for item in xrange(201)]for item in xrange(401)]
  10. for item in first:array[item[1]][item[0]]="#"
  11. array=array[200:]+array[:200]
  12. for item in array[::-1]:
  13.     if "#" in ''.join(item):print ''.join(item)
RAW Paste Data
Want to get better at Python?
Learn to code Python in 2017
Top