If you have read my posts on replit you might know that I mainly use python3 and used to use python 2.7. Today I will talk about the story of why I used python 2.7, and why I transferred to python3, along with pros and cons of each.
I started with python2.7, because that was the class I took. It looked like a nice programming language, and was easy to use once I learned the fundamentals. So here are the pros and cons:
|Easy to learn||Missing support for new features|
|Easy to use||It has essentially been back-porting python 3 features|
|Simple||No more official support|
Eventually for whatever reason I switched to python3, and the only different thing I noticed at the time was that print became a function. It was a simple change with a great reason behind it, but it made a lot of things possible. Of course there were more changes that I can notice now, but back then I wasn't as good with python as I am today. So here are the pros and cons:
|Easy to learn||Took some time to relearn how to quickly Code in it|
|Easy to use|
For python3 there aren't that many cons, and the one con that I could think of was short term and only affected people who had only coded in python2.7 before.
I chose python over other languages becuase:
- Java & C & C++ are statically typed, while I prefer dynamic languages, also you can use python typing with mypy to kind of statically type python
- bash scripting is not really a language