August 18th, 2011, 02:33 AM
alright so please no flaming me here. This is such a simple question
Im completely new to compilers/interpreters and have just started to take up learning python as a bit of a hobby
I have python27 installed and just started using the shell to learn.
I have noticed that I can't seem to write more than one line of code because every time I press enter it executes the line I just finished. then for shits and giggles I tried running the basic hello world from the cmd prompt and it asked what program to use to run it with.
I chose crimson editor as that is what I use for my site scripts. and it just showed the exact same things as the interpreter showed -> one line of code and the executed code.
How do I write multi-line code in the python shell without it running it everytime I press enter?
Why isn't it running from the cmd prompt?
I have completely overlooked something, I know. but this has never been my thing and its only recently I've tried to expand my thing, lol (not by whipping it against the bedpost or anything )
"In most gardens they make the beds too soft - so that the flowers are always asleep" - Tiger Lily
By moonstar550 in forum AntiOnline's General Chit Chat
Last Post: April 10th, 2004, 02:03 AM
By al1aprize in forum Spyware / Adware
Last Post: March 15th, 2004, 12:24 AM
By gizmofreak in forum AntiOnline's General Chit Chat
Last Post: December 7th, 2003, 05:43 PM
By neohunk in forum Tech Humor
Last Post: November 19th, 2003, 12:40 PM
By nate_k9 in forum Tech Humor
Last Post: October 26th, 2003, 07:56 AM