I was given the below code by another kind person like u. What is ur comment? Both works fine. Thanks.
Code:
def ck_no():
"""
Ask for user input of a valid number and repeat the
question, if the user enters a number, which is not
allowed or an invalid number.
Allowed numbers: 2, 3, 4
Return value of the valid answer
Leave a comment: