Comment Comment by c6401 Additionally to the provided answers:if sanity_check(): variable = something()variable = sanity_check() and something(but the standard python two line way is more readable unless it's a throwaway single use code, then whatever) parent c6401 2 years ago
if sanity_check(): variable = something()
variable = sanity_check() and something
(but the standard python two line way is more readable unless it's a throwaway single use code, then whatever)