Videos
So i've had some experience with BASIC a good few years ago so i'm not entirely new to programming. I've done some lessons on the syntax at codecademy and i'm getting my head around it fairly well. My problem is what do i actually need to program Python? There seems like so many different resources its all going over my head at the moment.
What you NEED to run python:
-
any text editor, to create/edit plain-text python (.py) files. There are tons of text editors out there but any PC should come with some form of basic text editing software.
-
python interpreter, the piece of software that takes your .py file and correctly reads it as python code. Normally the interpreter is accessible through a command line, using the syntax
python path-to-your-python-text-fileto interpret a file as python code.
What you CAN use to work with python more effectively:
-
a python shell, i.e. that place with the
>>>prompt. This is just the python interpreter running in "real-time". You can type any python expression and the shell will return whatever that expression evaluates to (type 2 + 2 to output 4, for example). This is mostly used to test python syntax and snippets while editing your code in a text editor. By default, python comes with the IDLE python shell but there are tons out there. -
an IDE (short for integrated development environment), which is basically a combination of the above features. An IDE is a software that combines a text editor, python interpreter, python shell, filesystem explorer, etc into one window, so you can have everything you need right there. They normally come with extra features as well, such as autocomplete and quick search on the official python documentation. IDEs can help out a lot, but they are not at all required to write/use python. I actually recommend you to not use an IDE until you have a better grasp on text editing/python interpreter, since they can be overwhelming at first.
IDE (Integrated Development Environment) is a basically a text editor with other features (e.g. running your program, syntax highlighting, ...). Really depends on the IDE. Look at PyCharm for python.
Python is an interpreted language, which means you "compile" it on the fly while running. For this "on the fly compiling", you need a program which converts python code to machine code on your machine. That's the interpreter (python in the console).
Which programming language was used to build python interpreter from scratch?I want to make a workable mini python like interpreter from scratch , not as hobby but as big project.
I want to see a minimalistic python interpreter (but same python workable) not as big today is, this would help me graps more .
Thank you for helping me