from __future__ import print_function

def prompt(question, retry=3):
    while retry > 0:
        inp = int(raw_input(question + ': '))
        if inp > 10:
            return inp
        retry = retry - 1

print(prompt("Type in a number above 10"))

print(prompt("Type in a number above 0", 1))

Function parameters can have default values. In such case the parameters are optional. In the function declaration, the parameters with the default values must come last. In the call, the order among these arguments does not matter, and they are optional anyway.