Question
In Python 3, write a function function() that draws the three letters (s, h ,f) as maritime letter flags (https://en.wikipedia.org/wiki/International_maritime_signal_flags) using turtle graphics. Each flag
In Python 3,
write a function "function()" that draws the three letters (s, h ,f) as maritime letter flags (https://en.wikipedia.org/wiki/International_maritime_signal_flags) using turtle graphics. Each flag is a square, draw a 1 pixel black border around each flag.
You will use randomization to vary how you draw your flags. The bottom left corner of the first flag is drawn at a random point in the rectilinear square bounded by (-200,-200) and (0,0). Each flag is of the same width w, which is chosen randomly in (100,200). The gap between consecutive flags should be a random number between 1 and 10.
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