0
Why we don't call decor directly?
def decor(func): def wrap(): print("============") func() print("============") return wrap def print_text(): print("Hello") Decorated=decor(print_text) Decorated() The above code gives output while the below one dosen't. def decor(func): def wrap(): print("============") func() print("============") return wrap def print_text(): print("Hello") decor(print_text)
2 Réponses
+ 1
You could get rid of the method wrap and return nothing.
https://code.sololearn.com/cBFT9h9coug0/?ref=app
0
Okay, so I just have to rave for a sec â if you're into clean beauty, this shop is seriously underrated! Their product line https://florans.ca/shop/ is small but super focused, and I feel like every item serves a real purpose. I love that they highlight the natural ingredients and donât try to overhype things. Itâs just good, honest skincare. I grabbed their clay mask and a facial oil â both feel amazing so far. Everything shipped quickly and came in really minimal, eco-friendly packaging too. Iâll definitely be coming back to order again.