0 out of 464 challenges solved

Check Odd Index Odd Numbers

Write a Python function `odd_position(nums)` that checks whether every odd index in a given list contains an odd number. The function should return `True` if the condition is met for all odd indices, and `False` otherwise.

#### Example Usage
```python [main.nopy]
print(odd_position([2, 1, 4, 3, 6, 7, 6, 3]))  # Output: True
print(odd_position([4, 1, 2]))  # Output: True
print(odd_position([1, 2, 3]))  # Output: False
```

#### Constraints
- The input list can contain integers only.
- The list can be empty, in which case the function should return `True`.
def odd_position(nums):
    """
    Check if every odd index in the list contains an odd number.

    Args:
    nums (list): A list of integers.

    Returns:
    bool: True if all odd indices contain odd numbers, False otherwise.
    """
    # Implement the function logic here
    pass