Search

Features of Python

This is for the documents leaving history for studying python referred to the book called “Do it 점프 투 파이썬
 Disclaimer
This post is a personal study note created while learning the topic discussed. Some information may be inaccurate or incomplete. If you notice any errors or have suggestions, I’d sincerely appreciate your feedback.

Features

Before learning how to write Python code, I believe it’s important to first understand the features of the language. Knowing what makes Python unique will help us understand the code more deeply.

Python is a Human-Friendly Language

What does it mean for a programming language to be "close to human language"?
I remember learning in school that programming languages can be categorized into two types. high-level and low-level languages.
High-level languages are easier for humans to understand, while low-level languages are closer to how computers work and are easier for machines to process.
When we say a language is easy for humans to understand, we mean it resembles natural languages like English.
On the other hand, low-level languages are closer to binary, the language of 0 and 1 that computers can directly interpret.
You may or may not have had experience with Assembly (a representative low-level language),
but if we compare the same function written in both Python and Assembly,
you’ll clearly see what I mean.
Python
print("Hello, world!")
Python
복사
Assembly
section .data msg db "Hello, world!", 0xA len equ $ - msg section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, msg mov edx, len int 0x80 mov eax, 1 xor ebx, ebx int 0x80
Assembly
복사
To be honest, I don't know how to write in Assembly language myself. The example above was written with the help of ChatGPT.
Both pieces of code, though written in entirely different languages, do the same thing, they print "Hello, world!" to the screen.
Now you can clearly see the difference between high-level and low-level languages. High-level languages are designed to be human-friendly, while low-level languages are designed to be closer to how computers operate.

Grammar is easy to learn fast

I've worked with several programming languages such as C, Java, and Python, and without a doubt, Python felt like the simplest among them when it comes to grammar.
Of course, simplicity can come with trade-offs, but I’ve never encountered another language that makes it so easy to get started with programming.
Rather than talking at length, let’s just look at a quick example. The following code snippets all do the same thing, extract even numbers from a list (or an “array” in some other languages).
You don’t need to understand what the code does in detail, just notice how short and clean the Python version is compared to the others.
Python
numbers = [1, 2, 3, 4, 5, 6] evens = [n for n in numbers if n % 2 == 0] print(evens)
Python
복사
Java
import java.util.*; public class Main { public static void main(String[] args) { List<Integer> numbers = Arrays.asList(1, 2, 3, 4, 5, 6); List<Integer> evens = new ArrayList<>(); for (int n : numbers) { if (n % 2 == 0) { evens.add(n); } } System.out.println(evens); } }
Java
복사
C
#include <stdio.h> int main() { int numbers[] = {1, 2, 3, 4, 5, 6}; for (int i = 0; i < 6; i++) { if (numbers[i] % 2 == 0) { printf("%d ", numbers[i]); } } return 0; }
C
복사
Now you can see what i am trying to say, Python is much simpler than the other languages

Python is Free, but Powerful

To be honest, I may lack experience, but I’ve never seen or heard of a programming language that itself requires payment.
However, some languages, while free in principle, may require paid tools or platforms to develop or run applications.
Python, on the other hand, is completely free
the language, the development tools, and even the runtime environment.
That doesn’t mean Python’s ecosystem is limited.
On the contrary, it has an incredibly rich collection of libraries and frameworks, making it possible to build almost any kind of software.
Of course, for tasks like hardware control or high-performance computation, C is often preferred.
But that doesn't mean such things are impossible with Python.

In conclusion

Python is free but far from lightweight.
It’s a language that anyone can start without pressure, but beneath its simplicity lies powerful functionality and a vast ecosystem. Whether you're a beginner or a seasoned developer,
Python is a highly attractive tool.