I’m new here and am also trying to learn from this platform. Need support from all.

I need a basic explanation and a solution for this program.

- Build up a function to implement the following operation.

def if_function(condition, true_result, false_result):

“”“Return true_result if condition is a true value, and

false_result otherwise.

>>> if_function(True, 2, 3)

2

>>> if_function(False, 2, 3)

3

>>> if_function(3==2, 3+2, 3-2)

1

>>> if_function(3>2, 3+2, 3-2)

5

“””