Python Introducing Lists Using Lists Iteration

Kay Fuen
Kay Fuen
1,144 Points

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
202,109 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.