Tomislav Maričevićtmarice.hashnode.dev·Nov 29, 2023Why I always assign intermediate values to local variables instead of passing them directly to function callsInstead of def do_something(a, b, c): return res_fn( fn(a, b), fn(b), c ) I do: def do_something(a, b, c): inter_1 = fn(a, b) inter_2 = fn(b) result = res_fn(inter_1, inter_2, c) return result The fi...PythonAdd a thoughtful commentNo comments yetBe the first to start the conversation.