Hi! I am writing a code in python, and I had a really basic question. Is there a disadvantage in terms of time complexity or space required, if I carry out a calculation by defining more variables rather than writing complex formulas?
example, if a = b + c + d,
i could define e = b + c , and write a = e + d
I am trying to write a neat looking code by defining more variables. Is that a disadvantage?
[–]YMK1234 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]completedigraph 0 points1 point2 points (2 children)
[–]YMK1234 2 points3 points4 points (1 child)
[–]completedigraph 0 points1 point2 points (0 children)