Skip to content

Raghav2409/Decorator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Decorator

The following code decorates the string with another string.

def string(): print("Hello world")

def decorate(func): def dec(): print("Say", end=" ") func() return dec

dec_string = decorate(string) dec_string()

About

Decorator Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published