Default recursion depth in python is 1000, but if you need to increase the depth (Not recommended) by;
import sys
sys.setrecursionlimit(needed_depth)
But if you're trying to run your simple program without any Error, try to capture them and handle or set a base limit for the recursion.
Set a base limit for recursion:
def get_girlfriend(n=0):
res = input("Will you go out with me? ")
if (n < 100 and res == "y"):
print("We've done it bois")
return
get_girlfriend(n+1)
Try and Capture the Error:
def get_girlfriend():
res = input("Will you go out with me? ")
if (res == "y"):
print("We've done it bois")
return
try:
get_girlfriend()
except RecursionError:
return
A Function should always have an exit gateway.