def uptoten(x):
    if x < 10:
        return x
    else:
        return 10


javascriptcode="""
function uptoten(x) {
    
    if (x<10) {
        return x;
    }else{
        return 10;
    }
}
"""
