# Part 1 
def sort_numbers(a, b, c, d):
    numbers = [a, b, c, d]
    numbers.sort()
    return numbers

## Example usage
num1, num2, num3, num4 = 4, 2, 7, 1
sorted_numbers = sort_numbers(num1, num2, num3, num4)
print("Sorted numbers:", sorted_numbers)

# Part 2
### Benefits:
- Simulations are cost-effective, allowing experimentation without real-world expenses.
- Simulations offer a safe environment to test scenarios, reducing risks associated with real-life trials.
- Simulations aid in understanding complex systems by observing behavior in controlled settings.
### Negative:
- Simulations may lack accuracy due to assumptions and simplifications, potentially leading to flawed decisions.

# Part 3
- The recommendation system uses an algorithm to show personalized content by analyzing user preferences and engagement.