def amount_of_Chests () : : def amount_of_Chests () :
    chestCount = 0
    amount_of_Chests_Display ()
    while chestCount <4 :
        chestCount_string = input("Please Make Sure You Enter Enough Chests\nPlease Enter How Many Chests You Would Like (Min.4)")
        chestCount = int(chestCount_string)
        if chestCount < 4 :
            print ("\nThere Are Not Enough Chests, Please Try Again.")
            amount_of_Chests_Display ()
        if chestCount > 3 :
            return chestCount
            amount_of_Bandits ()
        else :
            print ("Sorry that input is not valid. Please try Again.\n")

whenever I try this it does not work(input = 6), it sends me to the previous menu and says the input is invalid.
[Coding on python that does not work][1]
            


  [1]: http://i.stack.imgur.com/aHVOi.png