The maximum value of n is limited by the recursion depth of Python. If it exceeds the maximum allowed value, a recursion error will be displayed.