DEV Community

Cover image for INTRODUCTION TO MODERN PYTHON
Joelwaks
Joelwaks

Posted on

INTRODUCTION TO MODERN PYTHON

**

Wait, wait, wait... So, what is Python, exactly?
**
Python is a popular general-purpose high-level programming language. It has a reputation for being an elegant and simple to use language, with clean and easy to read source code and simple data structures (in comparison to more prominent languages like C, C++, and Java). This makes it great for newbies to programming and the ideal language for users who want to get a program up and running quickly but don't want to delve too far into the realms of software engineering. (For example, data scientists, script writers, and automation). Python is an interpreted language that supports a variety of programming paradigms. Python has achieved success in a variety of disciplines of computing as a result of all of this.

Python: The best bits
It's dynamically typed, for starters.
It's easier to work with dynamic languages. You do not need to specify the data types of variables in your application directly. Your source code will be more concise and less verbose as a result of this. You'll also write less code, which means you'll be more productive. You don't have to do any type casting, conversion, or coercion explicitly. (Some type conversions can result in precision loss, while others are simply impossible.)

  1. It is multi-paradigm in nature. Python gives you the freedom to write your program in almost any style you want. C, for example, is a procedural language. To finish your programming assignment, you split down the programming tasks into functions (procedures) and call those functions.
  2. It comes with a large standard library. The Python standard library is one of the largest in the world. It comes with pre-installed packages and modules for network I/O, file manipulation, data persistence, data compression, cryptography, concurrency, and other typical programming tasks. Furthermore, more specialized packages can be obtained (typically for free) from the internet using PIP, Python's user-friendly package management.

Python: The unfavorable aspects

  1. It is inefficient.
    In comparison to other prominent programming languages on the market today, it is safe to claim that Python is slower on average. This is to be expected for a variety of reasons. It is interpreted, which means that unlike compiled languages, it cannot be optimized for a certain CPU architecture.

  2. It isn't the memory-friendly language.
    It's not unusual for a Python variable to take up far more memory than it would ever be used during runtime. A programming language like Go, on the other hand, allows a programmer to specify how much memory a variable will take up. A programmer can explicitly indicate that an integer variable should consume 8 bits, 16 bits, 32 bits, and 64 bits of memory using constructs like int8, int16, int32, and int64. This level of control allows a programmer to create programs that are arguably more efficient.
    This is also why, in my opinion, Python is not getting much headway in mobile computing and embedded devices.

Top comments (0)