I have a function called Lookup that runs some info through an API. If the user's input is invalid and Lookup can't process it, it returns None. How would I write something to the effect of:
if lookup returns none:
return apology("invalid input")