Skip to content

Commit

Permalink
Closures and Decorators!
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalmastud authored Feb 23, 2020
1 parent 8ec6bef commit 6b23ab2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def wrapper(f):
def fun(l):
decorated_l = ['+91 {} {}'.format(n[-10: -5], n[-5:]) for n in l]
return f(decorated_l)
return fun

0 comments on commit 6b23ab2

Please sign in to comment.