[b]"What does -i mean in Python? Can someone explain this command-line flag?"[/b] Alternatively, for a more casual to

16 Replies, 1482 Views

The `-i` flag is one of those underrated Python gems.

It’s short for "interactive," and yeah, it keeps the interpreter alive post-script. Super handy if you’re tweaking code and wanna inspect things without rerunning.

Docs mention it [here](https://docs.python.org/3/using/cmdline.html), but honestly, just try it—you’ll see the magic.

Messages In This Thread



Users browsing this thread: 1 Guest(s)