```python
def smallest_num(xs):
  """
  Finds the smallest number in a list.
  """
  if not xs:
    return None
  return min(xs)

```