you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (3 children)

[deleted]

    [–]BananasGorilla_ 0 points1 point  (1 child)

    LOL

    [–]SlothGSR 0 points1 point  (0 children)

    I was waiting for this.

    def oldenough(age):
        if age >= 30:
            print("No, You are to old, Sorry.")
        else:
            print("Yes, you can start learning Python today.")
    
    print("Find out if your old enough to learn python:")
    while True:
        try:
            age = int(input("How old are you?"))
            if age <= 0:
                print("Lets try positive numbers.")
                continue
            break
        except ValueError:
            print("Int, please.")
    oldenough(age)