Ad

Turned this simple function in a one-liner using pythons lambda syntax

Code
Diff
  • division = lambda a, b : a / b if b else None
    • def division(a, b):
    • return a / b if b else None
    • division = lambda a, b : a / b if b else None