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

16 Replies, 1506 Views

Ah, the classic "what does -i mean in Python" question!

Yeah, `-i` stands for "interactive," and it does exactly what you guessed—keeps the interpreter open after running your script. Super useful for debugging since you can poke around variables and functions after execution.

If you wanna dive deeper, the [official Python docs](https://docs.python.org/3/using/cmdline.html) break it down.

Messages In This Thread



Users browsing this thread: 1 Guest(s)