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
Lesson 3 Homework:
Gift_Card Interview SQL Analysis Conducted by Miranda Zhao
floating point limitations
list_copy_shallow_deep.py
shuru15
Game4
Decimal, Octal, Hexadecimal and Binary Format
Exception.py
T
Calc1