import io from contextlib import redirect_stdout as r b=io.StringIO() with r(b):import this print(b.getvalue().splitlines()[-1])