Skip to content

PrasadKakileti/PythonSampleProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

PythonSampleProject

class Rectangle: def init(self, length:int,width:int): self.length = length self.width = width

def __iter__(self):
    yield {"length":self.length}
    yield {"width":self.width}

rect = Rectangle(10,5) for attr in rect: print(attr)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published