Run Code
|
API
|
Code Wall
|
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
tennis
Demo - Test
rstring
PyNameMangling
Problem: fb_series
Dictionary - convert to lowercase
PySetUnpack
gameboy
1 to 101 : Decimal, Octal, Hexadecimal and Binary Format
check if any permutations of a word is a palindrome - python