TypeError: '<' not supported between instances of 'NoneType' and 'int'
I have looked for an answer in Stack Overflow and found that I should be taking an int(input(prompt)), but that's what I am doing
def main():      
    while True:
            vPopSize = validinput("Population Size: ")
            if vPopSize < 4:
                print("Value too small, should be > 3")
                continue
            else:
                break
def validinput(prompt):
    while True:
        try:
            vPopSize = int(input(prompt))
        except ValueError:
            print("Invalid Entry - try again")
            continue
        else:
            break
 
     
     
     
     
     
     
    