From something like this:
print(get_indentation_level()) print(get_indentation_level()) print(get_indentation_level())
I would li
>>> import inspect >>> help(inspect.indentsize) Help on function indentsize in module inspect: indentsize(line) Return the indent size, in spaces, at the start of a line of text.