Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
PythonClosure2
#python 3.6.9 #PyClosure2: example of Python closure #this code is created by Rezaul Hoque on April 25,2022;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 banner(x): def display (y): print(x*25) print (y*25) return display p=[ ] for x in range(1,4): p.append(lambda x,y:f"{x*25}\n{y*25}") s,t,z=p s=banner('<') t=banner('*') z=banner('-') s('>') t('#') z('~') for k in p: print(k)
run
|
edit
|
history
|
help
0
GoogleCodindQues.py
gj2
pytest
tip calculation
POO I EN PYTHON 3
PyNamedTuple
Restaurant 1
Temp
linked_lists
PyAbs