Python Fundamental - Programming Language
What is Python ?
Python is a programming language that can execute a number of multi-use instructions directly (interpretive) with the object orientation method (Object Oriented Programming) and uses dynamic semantics to provide a level of syntax readability. Others define Python as a language that is capable, combines capabilities, and a very clear code syntax, and also comes with a large and comprehensive standard library functionality. Even though Python is classified as a high-level programming language, in fact Python is designed in such a way as to be easy to learn and understand.
Python itself features interesting features so it’s worth learning. First, Python has grammar and scripts that are very easy to learn. Python also has an automatic data and memory management system. In addition, modules in Python are always updated. Plus, Python also has many supporting facilities. Python is widely applied to various operating systems such as Linux, Microsoft Windows, Mac OS, Android, Symbian OS, Amiga, Palm and others.
Why Should Python?
Why should Python? Aren’t there many other programming languages out there? What are the advantages of Python?
These questions are often questions that arise before someone learns Python. Here are some of the strengths of Python:
1. Easy to learn. The syntax is clear and easy to read. It is very suitable to use, especially as a first programming language.
2. Simple but powerful. Writing code requires fewer command lines than other programming languages.
3. Versatile, it can fit almost any need or interest you have. Python can be used for desktop and mobile programming, CLI, GUI, web, automation, hacking, IoT, robotics, and so on.
4. Very popular. Rank 3 in the TIOBE index in 2020. No. The 4 most widely used programming languages according to Stackoverflow survey 2020. It is the no.1 fastest growing programming language and the most desirable in recent years according to Stackoverflow.
5. Who uses python? Python is widely used by large and top companies in the world. Google uses it on its search engine, on YouTube and others, Microsoft, Dropbox, Instagram, Pinterest, and others.
6. Portable, can run on multi platforms, windows, linux, mac OS, Java Virtual Machine and .NET.
7. Python modules (libraries) are so many (abundant) that it can make it easier for us to create programs without having to write code from scratch.
8. Python is a programming language that is ‘up to date’ due to the growing popularity of data science and its branches such as AI, machine learning, and big data. Python is most popular and widely used because it has a complete library for it such as sklearn, pytorch, tensorflow, and so on.
9. Open source. Python will continue to grow because it is supported by a large community and the Python Software Foundation (PSF) Institute which annually holds international conferences.
10. Python code can be run interactively (interactive mode) for testing, you can see the results immediately.
11. Multi paradigm, we can write python in a functional programming style and it can be OOP. OOP is easier and simpler than in languages like Java or C ++.
12. Python code can be embedded into other languages such as C and Java, or vice versa, from C or Java to Python.
13. Python is very fast. Source code will be compiled into bytecode, executing the same file for the second time will be faster.
14. Python tutorials are available in abundance, both in the form of printed books, e-books, articles, videos, and question and answer forums. All problems are almost certain to be resolved on the internet.
How to install Python on Windows?
1. Download the python file on google. adjust the needs of your pc / laptop with 32bit or 64bit.
2. Open the python file.
3. select the “Install for all user”.
4. select the installation location.
5. Don’t forget to activate ‘Add python.exe to path’ so that python commands are recognized in CMD (Command Prompt).
6. And Finish.
How to test python instalation
1. Click windows + R, and select cmd.
2. type python command to enter “Python Shell”.
3. then install the code editor. here using Pycharm.
How to install Pycharm on Windows
1. Download the Pycharm Installer from the official website: https://www.jetbrains.com/pycharm/download.
2. Run the PyCharm Installer, then click Next to continue the installation.
3. Specify a destination folder if needed, or leave the default then click Next.
4. Checklist on “Add launchers dir to PATH” then click Next.
5. Click Install to continue,
6. Wait for the PyCharm installation process to complete.
7. After the PyCharm installation process is complete, click Reboot now, then click Finish.
How to run and create a new project on Pycharm.
1. Click the Start Menu > Select PyCharm Community Edition, then if you have never previously installed PyCharm, please select Do not import settings, then click OK.
2. Select the desired theme then click Next Featured Plugins.
3. If no plugins are installed, click Start Using PyCharm.
4. After that, you can immediately create a New Project by clicking New Project as shown in the example image below.
5. Determine the location of the project storage folder then click the Create button. Then wait for the new project creation process to finish and you can start to create your first program.
6. OK, PyCharm Installation and New Project creation is complete.