Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from math import sqrt
- first=[]
- for z, x in enumerate(map(lambda x: x/1000.000,range(-1000,1000))):
- i=(int(round(z/100.0)),int(round((sqrt(abs(x))+sqrt(1-x**2))*10)))
- if i not in first:first.append(i)
- for z, x in enumerate(map(lambda x: x/1000.000,range(-1000,1000))):
- i=(int(round(z/100.0)),int(round((sqrt(abs(x))-sqrt(1-x**2))*10)))
- if i not in first:first.append(i)
- array=[[" " for item in xrange(201)]for item in xrange(401)]
- for item in first:array[item[1]][item[0]]="#"
- array=array[200:]+array[:200]
- for item in array[::-1]:
- if "#" in ''.join(item):print ''.join(item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement