0 out of 464 challenges solved

ASCII Value of Character

Write a function `ascii_value` that takes a single character as input and returns its ASCII value. The ASCII value of a character is an integer representation of the character in the ASCII table.

#### Example Usage
```python [main.nopy]
print(ascii_value('A'))  # Output: 65
print(ascii_value('R'))  # Output: 82
print(ascii_value('S'))  # Output: 83
```

#### Constraints
- The input will always be a single character.
- The function should return an integer representing the ASCII value of the character.
def ascii_value(char):
    """
    Returns the ASCII value of the given character.

    Args:
    char (str): A single character.

    Returns:
    int: The ASCII value of the character.
    """
    # Your code here
    pass