def count_rec(cursum, level):
    if level == 100:
        return 1
res = 0
for i in range(0, 100 - cursum, level + 1):
    res += count_rec(cursum + i, level + 1)
return res
print(count_rec(0, 0))
Python IndentationError - How to refactor?