Computer Science, asked by ASweety1431, 1 year ago

Hey plsss help me.... :( what are the advantages disadvantages of working in script mode in Python.
plsssssss it's very urgent ..... :-(

Answers

Answered by MacintoshTavish
21
Programming Language

When we want to choose a language for a project, we want to be thorough with what we can do with it. We want to be aware of how it can help us be efficient at what we want to do, but we also want to be careful of the problems that can arise. So, we believe it is worthwhile to take out some time and find out more. In this advantages and disadvantages of python programming language tutorial, we will learn the advantages and disadvantages of python programming language that will help you in knowing benefits of learning Python programming.

2. Advantages of Python

a. Extensive Libraries

Like we mentioned in our article on Python features, it downloads with an extensive library. These contain code for various purposes like regular expressions, documentation-generation, unit-testing, web browsers, threading, databases, CGI, email, image manipulation, and more. So, we don’t have to write the complete code for that manually.

b. Extensible

As we have seen earlier, Python can be extended to other languages. You can write some of your code in languages like C++ or C. This comes in handy especially in projects.

c. Embeddable

Complimentary to extensibility, Python is embeddable as well. You can put your Python code in your source code of a different language, like C++. This lets us add scripting capabilities to our code in the other language.


e. IOT Opportunities

Since Python forms the basis of new platforms like Raspberry Pi, it finds the future bright for Internet Of Things. This is a way to connect the language with the real world.

f. Simple and Easy

When working with Java, you may have to create a class to print ‘Hello World’. But in Python, just a print statement will do. It is also quite easy to learn, understand, and code. This is why when people pick up Python, they have a hard time adjusting to other more verbose languages like Java.

g. Readable

Because it is not such a verbose language, reading Python is much like reading English. This is also why it is so easy to learn, understand, and code. It also does not need curly braces to define blocks, and indentation is mandatory. This further aids the readability of the code.

h. Object-Oriented

This language supports both the procedural and object-oriented programming paradigms. While functions help us with code reusability, classes and objects let us model the real world. A class allows the encapsulation of data and functions into one.


j. Portable

When you code your project in a language like C++, you may need to make some changes to it if you want to run it on another platform. But it isn’t the same with Python. Here, you need to code only once, and you can run it anywhere. This is called Write Once Run Anywhere (WORA). However, you need to be careful enough not to include any system-dependent features.


3. Disadvantages of Python Programming Language

So far, we’ve seen why Python is a great choice for your project. But if you must choose it, you should be aware of its consequences as well. Let’s now see the downsides of choosing Python over another language.

a. Speed Limitations

We have seen that Python code is executed line by line. But since Python is interpreted, it often results in slow execution. This, however, isn’t a problem unless speed is a focal point for the project. In other words, unless high speed is a requirement, the benefits offered by Python are enough to distract us from its speed limitations.

b. Weak in Mobile Computing and Browsers

While it serves as an excellent server-side language, Python is much rarely seen on the client-side. Besides that, it is rarely ever used to implement smartphone-based applications. One such application is called Carbonnelle.

The reason it is not so famous despite the existence of Brython is that it isn’t that secure.

c. Design Restrictions

As you know, Python is dynamically-typed. This means that you don’t need to declare the type of variable while writing the code. It uses duck-typing. But wait, what’s that? Well, it just means that if it looks like a duck, it must be a duck. While this is easy on the programmers during coding, it can raise run-time errors.

In Any query regarding the advantages and disadvantages of Python programming language tutorial feel free to drop a comment.

d. Underdeveloped Database Access Layers

Compared to more widely used technologies like JDBC (Java DataBase Connectivity) and ODBC (Open DataBase Connectivity), Python’s database access layers are a bit underdeveloped. Consequently, it is less often applied in huge enterprises.

e. Simple

No, we’re not kidding. Python’s simplicity can indeed be a problem. Take my example. I don’t do Java, I’m more of a Python person. To me, its syntax is so simple that the verbosity of Java code seems unnecessary.

This was all about the Advantages and Disadvantages of Python Programming Language.


MacintoshTavish: thank me if you got this
MacintoshTavish: if not then it is not required
Answered by franktheruler
15

Python is a high-level dynamic programming language that focuses on coding like JAVA. But Python helps the programmers to do coding in fewer steps as compared to Java or C++. The language was founded in the year 1991 by the developer Guido Van Rossum.


Advantages:


It is Interactive

It can be Interpreted

It can be Moduled

A Dynamic programming language

An Object-oriented programming language

It is a High level language


Disadvantages:


Difficulty in converting to Other Languages


Weak in Mobile software use


Gets Slow in Speed as a whole


Run-time Errors which dont go away easily.

Similar questions