DEV Community

Discussion on: Dead Simple Python: Lambdas, Decorators, and Other Magic

 
ornataweaver profile image
Ornataweaver

but before this, it was:

def partial_transfiguration(target, combine_with):
    result = f"{target}-{combine_with}"
    print(f"Transfiguring {target} into {result}.")
    return result
Thread Thread
 
codemouse92 profile image
Jason C. McDonald • Edited

Ah, following you now. I've been working in C++ for the past couple of weeks, so "redefined" had a different connotation for me.

I had indeed removed the print statement in the second version! I'll go back and fix that. Thanks for the catch.