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
My heart.....😏😏😏
By
Rithunath v peter
Run
def triangle (x1,x2,x3,y1,y2,y3): p1=point(x1,y1) p2=point(x2,y2) p3=point(x3,y3) z=polygon([p1,p2,p3],fill="yellow", stroke="black") return z def triangle2(x4,x5,x6,y4,y5,y6): p4=point(x4,y4) p5=point(x5,y5) p6=point(x6,y6) z1=polygon([p4,p5,p6],fill="black",stroke="black") return z1 def rectangle (w1,w2,w3,w4,r1,r2,r3,r4): n1=point(w1,r1) n2=point(w2,r2) n3=point(w3,r3) n4=point(w4,r4) z3=polygon([n1,n2,n3,n4],fill="#FF0080") return z3 s1=triangle(x1=0,y1=0,x2=-50,y2=0,x3=-50,y3=50) s2=triangle2 (x4=0,y4=0,x5=50,y5=0,x6=50,y6=50) s3=triangle (x1=50,y1=50,x2=0,y2=50,x3=25,y3=25) s4=triangle2 (x4=-50,y4=50,x5=0,y5=50,x6=-25,y6=25) s5=rectangle(w1=0,r1=0,w2=-25,r2=25,w3=0,r3=50,w4=25,r4=25) s6=triangle (x1=0,y1=0,x2=50,y2=0,x3=50,y3=-50) s7=triangle2 (x4=0,y4=0,x5=-50,y5=0,x6=-50,y6=-50) s8=triangle(x1=0,y1=0,x2=0,y2=-50,x3=-50,y3=-50) s23=triangle2(x4=0,y4=0,x5=0,y5=-50,x6=50,y6=-50) s9=triangle(x1=0,y1=50,x2=-25,y2=75,x3=-50,y3=50) s10=triangle2(x4=0,y4=50,x5=25,y5=75,x6=50,y6=50) s11=triangle2(x4=-25,y4=75,x5=-75,y5=75,x6=-50,y6=50) s12=triangle (x1=25,y1=75,x2=75,y2=75,x3=50,y3=50) s13=triangle (x1=-50,y1=50,x2=-75,y2=75,x3=-100,y3=50) s14=triangle2(x4=50,y4=50,x5=75,y5=75,x6=100,y6=50) s15=triangle(x1=-50,y1=0,x2=-75,y2=-25,x3=-50,y3=-50) s16=triangle2(x4=50,y4=0,x5=75,y5=-25,x6=50,y6=-50) s17=triangle2(x4=-75,y4=-25,x5=-100,y5=0,x6=-50,y6=0) s18=triangle(x1=75,y1=-25,x2=100,y2=0,x3=50,y3=0) s19=triangle (x1=-50,y1=0,x2=-100,y2=0,x3=-100,y3=50) s20=triangle2(x4=50,y4=0,x5=100,y5=0,x6=100,y6=50) s21=triangle2(x4=-100,y4=50,x5=-50,y5=50,x6=-50,y6=0) s22=triangle (x1=100,y1=50,x2=50,y2=50,x3=50,y3=0) s24=triangle2(x4=0,y4=-50,x5=-25,y5=-75,x6=-50,y6=-50) s25=triangle (x1=0,y1=-50,x2=25,y2=-75,x3=50,y3=-50) s26=triangle(x1=0,y1=-50,x2=0,y2=-100,x3=-25,y3=-75) s27=triangle2(x4=0,y4=-50,x5=0,y5=-100,x6=25,y6=-75) show(s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21 ) show(s22,s23,s24,s25,s26,s27 )
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login