Python Programming Lab
WEEK-9
Name: B . Pranay Kumar
Date:07/04/2026
Roll no.:25R21A05F0
Branch : CSE-E
[Link] an attribute named color to your Rectangle objects and
modify draw_rectangle so that it uses the color attribute as the fill
color.
Progam and output:
[Link] a function called draw_point that takes a Canvas and a Point as
arguments and draws a representation of the Point on the Canvas.
Progam and output:
[Link] a new class called Circle with appropriate attributes and
instantiate a few Circle objects. Write a function called draw_circle that
draws circles on the canvas.
Progam and output: