Why Python is Best🤔 - 5 Reasons 
Tags: python, programming
Published: 2021-03-06 22:47:24

<!-- wp:paragraph -->
<p>Nowadays there does exist many programming languages and <strong>Python</strong> is one of these which often comes under limelight. As per surveys conducted by <a href="https://www.zdnet.com/article/programming-languages-python-developers-now-outnumber-java-ones/#:~:text=Featured&amp;text=According%20to%20SlashData%2C%20there%20are,and%207.1%20million%20Java%20developers." target="_blank" rel="noreferrer noopener">SlashData</a>, there are over 8.2 million developers who use Python programming language for their work. That's a lot, so there must be some strong reasons <strong>Why they use Python?</strong> If you come to me and ask why I would prefer using Python over other programming languages then my answer would be <strong>Code Quality, Developer Producticity, Portability, Support for libraries and Easily integrateability</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Code Quality</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>From experience of working at multiple startups and some other big companies what I've realised is that Most of Developers spend their time on trying to figure out what code is required for implementing certain functionality. <strong>But Python's feature of Easily readable, coherence makes it unique and quite easier to implement functionality.</strong> </p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Python is designed to be easily readable</li><li>Easy to implement code in some specific techniques like Object-Oriented and Functional Programming</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2>Developer Productivity</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Owing to simpler syntax, easily readable Python reduces time to implement functionality way lower as compared to other programming languages like C. Also  in Developer community people jokes about Python saying <strong>"Python code is one-third to one-fifth of equivalent C++ code"</strong>. </p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Lesser time to write Python code</li><li>Lesser time to find bugs and do debugging</li><li>Less time to maintain code over time</li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2>Portability</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>As Python is interpretable that's why it could be easily ported from Windows to Mac or to Linux, it's just matter copying a script over. But for so many other programming languages so many things need to be kept in mind before porting over. For example - For running same C++ code using gcc on Mac and then transferring over it to Windows, Developer need to keep in mind that there does exist some differences between gcc on Mac versus on Windows. So before porting over some things need to be fixed.<br>But that's not the case with Python.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"backgroundColor":"light-green-cyan"} -->
<p class="has-light-green-cyan-background-color has-background">Python can be easily ported from Windows to Mac or some other operating system.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Support for Libraries/Modules</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p><strong>Python comes with a number of modules beforehand, so you don't need to explicitly write code doing some stuff.</strong> For example - Doing a search through a text file of 100000 lines is so easy that it can just be done in three lines of code using <a href="https://docs.python.org/3/library/re.html?" target="_blank" rel="noreferrer noopener">re python module</a>.<br>In addition to a number of internally defined modules like array, calendar, email and many more. There does exist many libraries externally specifically designed for <strong>Data Science Purpose</strong>. Some of python libraries designed for doing Data Science are -</p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li>Numpy</li><li>Scipy</li><li>PyTorch</li></ul>
<!-- /wp:list -->

<!-- wp:loos-hcb/code-block {"langType":"python","langName":"Python","fileName":"Python re module code example"} -->
<div class="hcb_wrap"><pre class="prism lang-python" data-file="Python re module code example" data-lang="Python"><code>import re
txt = &quot;Computer Science Hub&quot;
x = re.search(&quot;Hub$&quot;, txt)

if x:
	print(&quot;Yes, txt have Hub word&quot;)
else:
	print(&quot;No, txt doesn&#39;t have Hub word&quot;)</code></pre></div>
<!-- /wp:loos-hcb/code-block -->

<!-- wp:heading -->
<h2>Easily Integrateability</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Nowadays most of code need to run across multiple platforms either it in hand of users as SmartPhone or on lap of users Laptops. That's why most of Software need to work across platforms, but I believe that it would be meaningless if a company's engineering team spends 6 months on developing a piece of software and then spends another 6 months for making it to work across platforms.<br>But that's not the case with <strong>Python Programming Language</strong> you can easily integrate it with other programming languages to make it work across platforms.<br>Not only that you can easily integrate C++ code with Python, providing access to low level of memory if you need to explicitly do <strong>Memory Management</strong> while coding in Python.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Conclusion</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>From experience of learning Python at university to working as a <strong>Python Developer</strong>, I've realised that most people prefer python because of this one single reason - <strong>Easy to read and write</strong>. Also most of software engineers have started their programming journey by first learning Python.<br>Personally I also recommend to learn Python first and then move onto learn some low level language like C++, because understanding under the hood stuff is really crucial to develop reliable, cross-platform and scaleable software.<br><strong>Do comment down below why like Python or prefer it over other programming langauges.</strong> <br><br>Happy Coding 🥳</p>
<!-- /wp:paragraph -->