Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PyDeco2
#Python 2.7.17 #PyDeco2 #this code is created by Rezaul Hoque on December 07,2021;contact: jewelmrh@yahoo.com #note: codes shared by Rezaul Hoque on rextester are not for sale; they are created and shared to facilitate the algorithm learning process; many like Hoque use this platform to practice programming ;Rezaul hopes his contribution helps others to fine tune their learning; def Deco(fun): def wrap(*args,**kwargs): print("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<") print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>") fun(*args,**kwargs) print("December 07,2021") print("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<") print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>") return wrap @Deco #@Deco is same as theFun= Deco(theFun) def theFun(s1,s2): print(s1+" "+s2) theFun("Python","Decorator")
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
First programm
bacs_class
Aisha Wall
Dictionary
rstring
irctcbot
gameboy
Parity in Python
Problem: binary
GayChicken
Please log in to post a comment.