Python Introducing Lists Using Lists Iteration

how do you know when to use python vs. python -i?

is there a general rule of thumb when to use these initial entries?

1 Answer

Steven Parker
Steven Parker
207,980 Points

With no arguments, these are the same.

When you provide a filename argument, Python will normally run the file and then exit. With the "-i" option, after running the file it will go into prompt mode as if you had not given an argument.