Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'd like to create a program that generates random shapes(rectangles and circles) in python . However, I don't want to use turtle. I'd like to
I'd like to create a program that generates random shapes(rectangles and circles) in python. However, I don't want to use turtle. I'd like to enter a drawing file name to create and then have the user enter the number of shapes to make.
For example, "Enter the drawing file name: draw1.txt", "Enter the number of shapes to make: 15"
This will write 30 shape lines to the file draw1.txt.
The lines should be written similar to below:
Circle; 80, 72; 15; 32, 208, 86 Rectangle; 145, 106; 421, 274; 32, 208, 205
Thank you.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started