Explore
Courses
Batches
Sketches
Statistics
Code a Pookkalam
Jobs
Devsprint
People
Course Creation
Create a Course
Guidelines
Resources
Support
Blogs
My Profile
About Us
Login
Sketches
0
New Sketch
By
Abin Jacob
Run
def concentric_squares(x, y,l,n): step=l/n for i in range (n): s=rectangle(x=x,y=y,w=l,h=l) show(s) l=l-step l=200 n=10 w=200 h=200 concentric_squares(0, 0,l,n) concentric_squares(w/2,h/2,l,n) concentric_squares(-w/2,h/2,l,n) concentric_squares(w/2,-h/2,l,n) concentric_squares(-w/2,-h/2,l,n)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login