PYTHON   54
simple divide
Guest on 26th August 2023 12:41:25 AM


  1. def simple_divide(item, denom):
  2.       try:
  3.           return item / denom
  4.       except ZeroDivisionError:
  5.           return 0

Raw Paste

Login or Register to edit or fork this paste. It's free.