Today Python has proved lots of programmers its vast usage in the field of Machine Leaning and Artificial Intelligence. Developed by Guido van Rossum in 1991 somewhere when Java was also in the phase of development initially didn’t get much attention. But its vast bundle of useful packages, user friendly syntax and easy to learn became the reason why Python is extending its support in these fields.
Python came as rescue to the programmers who were troubled by the closing of curly braces and lengthy lines of codes.
C++ Program to find sum of 2 numbers
using namespace std;
int a = 5;
int b = 10;
cout<<“Sum of a and b = “<<a+b;
Python Program to print sum
a = 5
b = 10
print(“Sum of a and b = “,a+b)
These two comparisons are enough to indicate the simplicity of code and readability involved in the Python code.
Moreover like other programming languages ,our Python has disadvantages too.
- Python programs runs slow.
- Requires more testing time.
- Generally anyone would find difficult when switching from Python to other languages. 🙂