def func(): n = 0 while n: print("spam") def nested_func(): pass