Ask your own question, for FREE!
MIT 6.189 A Gentle Introduction to Programming Using Python (OCW) 14 Online
OpenStudy (anonymous):

How do I stop python from executing code? so for example I want to write a simple program where the user enters two numbers and I multiply them and print the answer. If i try "Number1 = input("please enter a number") " then as soon as I press enter, to start writing a new line of code, this previous line is executed. How can I stop this.

OpenStudy (anonymous):

alright so i was typing directly into the "shell", so, not doing that works.

OpenStudy (anonymous):

I guess you're trying typing your code in the shell. Instead of this press CTRL+N, then write your code in the new window that opens. After you finish writing your code, CTRL+SHIFT+S and save your file with the .py extension, then press F5. It will open the shell where you'll see the output of your program. Hope this will help you get started.

OpenStudy (anonymous):

Thanks for the shortcuts :)

OpenStudy (anonymous):

Otherwise, CTRL+C should do...

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!