Question: In python create the Switzerland flag. I have attached the example of the Armenian Flag for reference. import graphics myWin = graphics.GraphicsWindow(300, 300) myCanvas =
In python create the Switzerland flag. I have attached the example of the Armenian Flag for reference.
import graphics myWin = graphics.GraphicsWindow(300, 300) myCanvas = myWin.canvas() myCanvas.setColor("red") myCanvas.drawRect(10, 10, 140, 30) myCanvas.setColor("blue") myCanvas.drawRect(10, 40, 140, 30) myCanvas.setColor("gold") myCanvas.drawRect(10, 70, 140, 30) myWin.wait() myWin.close()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
