counter = 0 fn inc(): counter = counter + 1 fn main(): if counter < 30: inc() main() main()