Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I've seen some interesting courses in AI using Python, so before buying the courses I decided to learn some Python. So far it seems fairly regular: just another general purpose language with some syntactical sugaring. Which makes me think if I am not better off picking another course which uses any language I already know ( c# , java , c++ ).

Still, I am intrigued by the fact that Python seems to be gaining momentum . Why? It seems like a fairly regular language. I don't quite understand what's so wonderfull about it. Maybe I have to dwelve deeper to find out.

What I have tried:

Just going through the basic syntax : declarations, operators, comparision, functions.
Posted
Updated 18-Dec-16 16:23pm

This is one of those questions that's based a lot on your own experience with something and opinion of related technologies.

I'm an engineer and I see programming as an important tool in my bag of tricks. I've been developing with C/C++ for years so I'm very familiar with the language and can make it do just about anything I need and I know the code will be pretty darn fast. The problem is... it can be cumbersome to code some basic things. That's where you have to be ready to expand your bag of tricks...

Python... so this language is quick and easy to write, can be just as fast as C/C++ (since C/C++ code can be easily interfaced into Python), has extensive libraries, is expanding and growing a lot quicker than other popular languages.

Example of positives: If you have to parse some random text file, in C++, that can be cumbersome, in Python, that can literally be a file with a few lines of code! Need to do some quick math, well... we can use something like Octave but Python has great math libraries now too and can be similarly be interacted with through a command prompt (i.e. you have access to everything from the command prompt).

Negatives: Yes, there are some... well, being used to C++ means that you expect all of your code to be initially "vouched for" by the compiler before you even attempt to do anything so that at least you know the syntax is correct. Well, Python is an interpreted language so that goes out the window right away. That's not always considered a negative but essentially that can lead to problems sneaking into code and not being detected until way later when someone actually tries to run that piece of code (unit testing becomes important!).

Anyway, I can probably go on and on but that's a good start.
 
Share this answer
 
Quote:
Python seems to be gaining momentum . Why?
Why not? Python, like all languages, offers some nice features which people find easy to work with.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900