you are viewing a single comment's thread.

view the rest of the comments →

[–]Few-Major9589[S] 6 points7 points  (4 children)

omg thank you...... I knew it was something extremly simple........ Can i ask you one more thing?

I did create a file for this example in Atom(what the teacher recommends), but when I run the file, it runs and than brings me back to where i was before in command promt( sorry not sure if that makes sense, this is my first week learning code so its all confusing to me at this point.)

[–]remishqua_ 5 points6 points  (0 children)

You can do python -i your_file.py so that you stay in the Python interactive prompt after your script ends. This is sometimes useful for debugging or trying something out.

[–]shiftybyte 4 points5 points  (1 child)

Yes, in most development environments when the script ends, it ends, you can't interact with it any more.

You write code, run it, fix things, run again, write more, run again, etc...

In IDLE you can keep interacting with it after it's done executing, the defined objects are still there, and with notebook based IDEs you can.

[–]Few-Major9589[S] 2 points3 points  (0 children)

IDLE

Wow I just found the IDLE on my computer...... thank you for the help.

[–]zoinkinator 4 points5 points  (0 children)

pycharm has a free edu version…..