0% found this document useful (0 votes)
1 views4 pages

Python Programming Lab WEEK-9

The document outlines a Python programming lab assignment for Week 9, focusing on object-oriented programming concepts. It includes tasks such as adding a color attribute to Rectangle objects, writing a function to draw points, and defining a Circle class with a drawing function. Each task requires programming and output demonstration.

Uploaded by

kanakadurga
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views4 pages

Python Programming Lab WEEK-9

The document outlines a Python programming lab assignment for Week 9, focusing on object-oriented programming concepts. It includes tasks such as adding a color attribute to Rectangle objects, writing a function to draw points, and defining a Circle class with a drawing function. Each task requires programming and output demonstration.

Uploaded by

kanakadurga
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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:

You might also like