4 added 4 characters in body
source | link

Python 2, 40 bytes

f=lambda r,t:r and"print%r"%f(r-1,t)or t

Try it online!Try it online!

-4 bytes thanks to xnor

Python 2, 40 bytes

f=lambda r,t:r and"print%r"%f(r-1,t)or t

Try it online!

-4 bytes thanks to xnor

Python 2, 40 bytes

f=lambda r,t:r and"print%r"%f(r-1,t)or t

Try it online!

-4 bytes thanks to xnor

3 deleted 1 character in body
source | link

Python 3Python 2, 4440 bytes

f=lambda r,t:"print(%r)"%fr and"print%r"%f(r-1,t)if r elseor t

Try it online!Try it online!

-4 bytes thanks to xnor

Python 3, 44 bytes

f=lambda r,t:"print(%r)"%f(r-1,t)if r else t

Try it online!

-4 bytes thanks to xnor

Python 2, 40 bytes

f=lambda r,t:r and"print%r"%f(r-1,t)or t

Try it online!

-4 bytes thanks to xnor

2 deleted 63 characters in body
source | link

Python 3, 4844 bytes

f=lambda r,t:"print(%r)"%f(r-1,t)if r else"%s"%telse t

Try it online!Try it online!

Kind of a built-in but less cheap than my Jelly answer I guess. Uses recursion4 bytes thanks to xnor

Python 3, 48 bytes

f=lambda r,t:"print(%r)"%f(r-1,t)if r else"%s"%t

Try it online!

Kind of a built-in but less cheap than my Jelly answer I guess. Uses recursion

Python 3, 44 bytes

f=lambda r,t:"print(%r)"%f(r-1,t)if r else t

Try it online!

-4 bytes thanks to xnor

1
source | link