Link to home
Start Free TrialLog in
Avatar of Janice Cook
Janice CookFlag for United States of America

asked on

Why is Python so "hot" as a language to know, and why is it so important in Artificial Intelligence applications?

It seems as if knowledge/skill in Python programming is at the top of the list if you are developing AI applications. Is my observation incorrect or incomplete?

If Python is so important, what makes it so different from other programming languages?

Thanks in advance for you help.
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

The majority of Open Source Big Data packages and Machine Learning packages are developed using Python, e.g. Tensorflow, PyTorch.

Simple to use, simple to program, used now in UK schools as one of the chosen languages for Students to use and develop progressing on from Scratch (GUI), included with Linux (Raspberry PIs).

Recent developments using Notebooks, make it easier for non-programmers to get to grips with basic functions.
Yes and no.

The actual skill of being able to program in a language is not really the necessary skill.

The power of mostly all common languages lies within the libraries available and the functionality covered by them and quality of those libraries.

Python is important in AI, cause it has a lot of libraries around AI.
Avatar of Janice Cook

ASKER

Thank you for your response. Could you please describe what "libraries" are....are they other functions or programs that Python is able to call in when necessary?
Avatar of noci
noci

Like Pascal in the 1970's   the language was developed to be able to be used by anyone learning computer languages.  
Unlike Pascal the language was actually usable beyond learning.
Due to this a lot of libraries were developed for this.  Due to availability of libraries it become more useful, more used, more libraries, .... etc.

In the same period a lot of people got acquainted to the language so it became their language of choice of small and eventually larger projects.
It also helped one didn't need expensive compilers, also the sources to the interpreter & runtime were available for free as well.
And most importantly they were well maintained.

Libraries are a collection of code to do a specific task. in one bundle.
And a programming language will need to be able to handle such libraries.
A programming language consists out of keywords and syntax. Learning a language means learning to use those keywords and using the correct syntax (grammar).

For example C is pretty easy to learn as it has only 21 keywords.

The complexity starts when you want to work with it.
Each "simple" task like answering question e.g. "How long is this text?" requires methods to do this. These methods are in almost every language part of a library and not part of the language itself.

So, a library is a collection of methods.

In addition to my first answer:

The key is not to learn the language itself. The key is to learn to use the important libraries. This means especially to know, when to use what library and what methods to solve problems.
Python (or any other languag for that matter) doesn't call in libraries. The programmer tells the Python interpreter how to solve a problem and what libraries to use.

>50% of a programmers task is to be a good librarian or at least know how to search the index of other library collections if there is a useable partial solution to an issue identified. Most of the other part is to disect a problem into solvable portions.   Translation in a specific language (being it English, Swahili, Chinese, C, Python, assembly ) is only a tiny part of it.
The disecting part is can greatly benefit from knowing what libraries there are and how they solve what problem.
ASKER CERTIFIED SOLUTION
Avatar of dpearson
dpearson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial