How to Start Python Coding — Learn Python!
Start writing programs with Python. Let’s get started with basic information about Python programming language, Python installation and writing a simple program.
What Is Python?
Let’s look at the answer to this question from Wikipedia:
Python is an object-oriented, interpreted, formal (modular) and interactive programming language.
Simple indents-based syntax makes it easy to learn and keep in mind the language. This gives him the ability to be a language that can be programmed without losing time with the details of the syntax.
It supports modular structure, class string (system), and any data field entry. It can work on almost any platform. (Unix , Linux, Mac, Windows, Amiga, Symbian). With Python, you can develop software in many fields, such as System Programming, user interface programming, network programming, Application Programming, and database programming. It is preferable to use languages such as C or C++ when it is necessary to produce and test prototypes of large software quickly.
Python is a language that is easier to learn than C or c++, As can be seen from the article. That’s why it’s easy for beginners to get used to. However, if you want to switch to C or C++later, those languages may be difficult for you, and even a lot of commands may be unnecessary.
Python’s official site: http://www.python.org is. You can find a lot of documents and modules on this site.
Let’s start by downloading Python. Python is now available in two versions as the newly released python 3 and the Old python 2. Since there are module deficiencies for Python 3, and many programmers do not want to make minor changes in the way of coding, the Python 2 series is still valid.
When writing this article, python 2.7.2 was the latest version. You can also start by downloading this version or the latest version of the 2 series.
To download Python: http://www.python.org/download
After downloading, you can see Python in the Start menu. The simplest way to write code is the Visual tool idle comes with this package.
Lets start Coding with Python
Start Idle by following All Programs -> python 2.7 -> idle (Python GUI) from the Start menu.
Open a new window with File-> New Windows.
print "hello world"
write. File-> save this page to your desktop “deneme.py” save it with the name.
Press F5 to run the code.
>> Hello world
Yes, you wrote your first program. The task of this program was to write hello to the screen.