guys am new to python programming and am stuck with this homework: qn; rewrite the following program so that it can handle any invalid inputs from user.
def example()