0 out of 464 challenges solved

Swap Numbers in Tuple

Write a Python function `swap_numbers(a, b)` that takes in two numbers and returns a tuple with the second number first and the first number second.

#### Example Usage:
```python [main.nopy]
result = swap_numbers(10, 20)
print(result)  # Output: (20, 10)

result = swap_numbers(5, 15)
print(result)  # Output: (15, 5)
```

#### Requirements:
- The function should accept two arguments.
- The function should return a tuple with the two numbers swapped.
def swap_numbers(a, b):
    """
    Swap the positions of two numbers and return them as a tuple.

    Args:
        a (int or float): The first number.
        b (int or float): The second number.

    Returns:
        tuple: A tuple with the second number first and the first number second.
    """
    # Implement the swapping logic here
    pass