Question:
Just to confirm: Is this how I type Python code?
?
2014-06-14 13:09:50 UTC
Just to confirm: Is this how I type Python code: I go to Notepad++ and go to Language at the top and select Python, then I just type Python code and save the python file, am I right? But how do I get Python Interpreter online for free? I heard that I need Python interpreter to run the program or something with Notepad++. Please tell me the step by step procedure of getting one. Thanks.
Four answers:
Chris
2014-06-14 14:37:04 UTC
"And then what do I do once I get to that website?"



You download the installer fit for your system. If you are on Windows, take one of the Windows installers. (Check your system properties whether you have a 64bit or 32bit operating system, press Windows + Pause or open System in the Control Panel).

I recommend getting Python 2.x though:

https://www.python.org/download/releases/2.7.7/



Notepad++ is "just" an editor. It's a great editor but it can't run or compile programs by itself. The language selection will highlight your code according to Python syntax rules, and save your file with extension *.py pre-selected, but that's it.



To run a python program, save it as filename.py, then open the command line, navigate to the directory with the file and type "python filename.py" (after installing python, of course).
2014-06-14 13:30:30 UTC
If you want to Code in Python, Screw Notepad++. Notepad++ Is to Much Extra To run Your Python Programs You Can Get the Python Editor And Interpreter Here: https://www.python.org/downloads/release/python-341/
John
2014-06-14 19:07:18 UTC
>I would disagree with Seth. Notepad ++ is fine, and the generally

>given instructions for working with it in the CMD system are well

> detailed. Where Chris errs is in his over-enthusiasm for Python 2.

>Reasonable people can disagree, but either learn both or learn

> Python 3. The best option is to learn both. I know you can do that

> on Linux and Richintosh systems, but I'm not sure if you can on

> Windoze. I'm unprejudiced.

>

> John (gnujohn)
2014-06-14 15:35:39 UTC
if you want to learn Python here are 3 FREE online books that explain everything



Program Arcade Games With Python And Pygame

http://programarcadegames.com/



Making Games with Python & Pygame

http://inventwithpython.com/pygame/chapters/



Invent Your Own Computer Games with Python

http://inventwithpython.com/chapters/



the first book is the most advanced, but is also might be the easiest to read (it has lots of resources: videos, pictures and stuff)



of those 3, that last one is the most basic

it's for making text only games - like hangman

but you'll learn a lot about programming and making games



the middle book is kind of in the middle for difficulty I think



anyway, if you go through those books you'll learn a LOT



that first book is written and used by a professor in his Introduction to Programming course at his university



here's a video of a game one of his students made

/watch?v=S7eMdoM1MTc

https://www.youtube.com/watch?v=S7eMdoM1MTc



nothing too fancy, but pretty impressive for their first game



here's some more games his students made

https://www.youtube.com/playlist?list=PLUjR0nhln8uZZjNv16i-v5Sgi_spcoWQS



https://www.youtube.com/user/professorcraven/playlists


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...