Path 1: 602 calls (1.0)

' Sometimes' (20) ' NameError' (18) ' RuntimeError' (18) ' Returned' (14) ' RuntimeError: Always' (14) ' ...

8 (345) 4 (158) 12 (94) 0 (3) 2 (1) 3 (1)

1def space_indentation(s: str) -> int:
2    """The number of leading spaces in a string.
3
4    :param str s: input string
5
6    :rtype: int
7    :return: number of leading spaces
8    """
9    return len(s) - len(s.lstrip(" "))