def triple(x):
    return x * 3

def square(x):
    return x * x

def triple_square(x):
    return triple(square(x))

def triple_plus_square(x):
    return triple(x) + square(x)

def triple_plus_square_with_explaining_variables(x):
    tripled = triple(x)
squared = square(x)
return tripled + squared
Adding lambda functions with the same operator in python