Generation

generate functionWed, 29 Mar 2023

Una linea que diga que si a es NaN que envie un mensaje de error

def add(a, b): if a is None or b is None: raise ValueError('a and b cannot be None') return a + b add(1, 2)

Questions about programming?Chat with your personal AI assistant