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
Random ces
By
Yamini rayini
Run
bg=rectangle(0,0,300,300,fill="white") show(bg) def random_color(): r=random(255) b=random(255) g=random(255) return color(r,b,g) def random_circles(): x=random(-150,150) y=random(-150,150) r=10 return circle(x,y,r,fill=random_color()) for i in range(50): c=random_circles() show(c) def random_squares(): x=random(-150,150) y=random(-150,150) w=25 h=25 return rectangle(x,y,w,h,fill=random_color()) for i in range(50): s=random_squares() show(s) def random_ellips(): x=random(-150,150) y=random(-150,150) w=random(0,25) h=random(0,15) return ellipse(x,y,w,h,fill=random_color()) for i in range(50): e=random_ellips() show (e)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login