Python
Python
-Programming a computer or a digital device is done by setting the right “switch” to perform specific
task such as logical and arithmetic operations were computers excel the most.
-That’s were programming languages came, it bridges the gap between human and machine
communications.
-Programming language mostly designed to be more akin to English language in order for us human
programmers to instruct the computers more effectively and programming languages translate this
closely human language into machine language for the computer to process and understand it.
-Programming languages generally translate source code to machine code. It can be done in 3 ways.
-Compiled
-Interpreted
-Hybrid
Compiled language
-It works by converting the entire source code into machine code at once.
-Analogy, human speaker being bilingual and proficient in both languages like English to Korean
Interpreted language
-It works by converting the source code line by line in real time into machine code.
-Analogy, having an interpreter in real time to translate your language into another language
Hybrid language
-It works by combining compiled and interpreted language. First by compiling the source code into an
intermediate language then the intermediate language translates it to real time machine code.
-Analogy, reading a book that is from foreign language then it is translated for your native language.
-It depends on application, compiled language is better if you need better hardware controls like
operating system, drivers, firmware, etc. Interpreted is better if you want to perform a fast action like
basic data manipulation and calculations. Hybrid mostly reign in general purpose language because it
can do the functions of interpreted and compiled language but not as efficient if you try to specialized it.
-Python can run on any platforms (Windows, Linux, Mac OSX, Android, iOS, Web browser,
microcontrollers, etc.)
-Python have all library that needs to perform specific task like web application (Flask, Django), desktop
application (PyQT, tkinter), image processing (OpenCV, PIL), Desktop and web app automation
(pywingui, Selenium), embedded systems (micropython, circuitpython, PiGPIO), database manipulation
(sqlalchemy, pymysql), IoT (pahoMQTT, requests), artificial intelligence (Tensorflow, PyTorch, skilearn),
natural language processing (NLTK, transformers) and etc.
-Majority of well-known web application uses Python (Instagram, Netflix, Spotify, YouTube, Dropbox)
-AI based applications (Google Translate, chatbots, FaceApp, face recognition apps and devices)
Wow, that was awesome, can I start coding now?
-You can but I need to remind you the basic operation of a computer
-Computers mostly operate in logical operations (NOT, OR, AND) and by accessing data from the
memory and input devices.
-Integer, represents whole number (eg. Age, population, item quantity, network port number, etc)
-Float, represents numbers with decimal places (eg. Area, speed, velocity, mathematical constants, etc)
-String, represents text (eg. Name, address, phone numbers, messages, comments, etc)