Python Guide For Beginners: Reasons Behind Increasing Demand For Python

What’s so great about Python?

Well, the list is really long and varied. Let’s start with Python containing all the different major programming idioms. So Python is great for building object-oriented applications and architecting your application that way there’s a very rich type hierarchy, even has multiple inheritance, which may or may or may not be a good thing. But you can model things using objects super well in Python. At the same time, you don’t have to use objects.

Unlike languages like Java and C# where it’s only object-oriented programming. And like everything has to be a class. And you can kind of shoehorn other models. You could just work in functions. So there’s procedural style. It is totally good.

  1. And there’s also a functional style
  2. of programming, which works with things
  3. like immutable data and passing functions
  4. and all of those ideas from the functional programming
  5. languages.
  6. And you even have things like aspect-oriented programming
  7. with things like decorators in Python.
  8. So you can model or work in whatever way suits you.
  9. And Python runs everywhere.
  10. So Python, obviously, runs on the major platforms–
  11. Linux, Mac OS, and Windows–
  12. but it also runs on things as small as Raspberry Pis
  13. or even microchips.
  14. There are special microchips that run a flavor of Python
  15. called MicroPython.
  16. And these are like $5 microchips.
  17. And yet, you can take Python, and it is more or less
  18. the O/S for that little chip.
  19. You can even do wild things like hook function callbacks
  20. up to, say, a hardware interrupt.
  21. How about that?
  22. So in addition to all these programming models,
  23. we have a very simple and easy to learn, easy
  24. to read programming language.
  25. And the icing on the cake is really
  26. what you’ll find at what’s called the Python Package
  27. Index or PyPI.
  28. At PyPI, there’s over 120,000 external libraries
  29. that are one line in the command line to install.
  30. And you can do amazing things.
  31. You can install deep learning models or image recognition
  32. models or web frameworks.
  33. The selection of these various libraries is amazing.
  34. And one of the challenges of learning Python
  35. is actually learning those libraries and which
  36. ones work well with others.
  37. And there are sites out there to help you
  38. with those kinds of things.
  39. But it’s really a huge, huge benefit
  40. that you don’t just get the language.
  41. You don’t just get the standard library.
  42. You get the 120,000 plus other packages
  43. out there to help you build your Python application.
  44.  
  45. Why is Python a great language for beginners?
  46. Well, the language is super simple.
  47. And in fact, you could probably learn the basic syntax
  48. of Python in a weekend.
  49. It’s one of these things that you can learn right away,
  50. but it takes a lifetime to master sort of things.
  51. But because Python doesn’t force all this formalism on you
  52. and all this structure, you can use just the little pieces
  53. that you need, maybe you don’t know
  54. how to work it all with web frameworks or databases
  55. or decorators or list comprehensions or all
  56. these advanced language features,
  57. you can just pretend they don’t exist.
  58. You can just write your simple little program.
  59. You don’t even need functions if you really
  60. don’t want to, if that doesn’t make sense for you.
  61. So as you need them you bring in these language features.
  62. And this is one of the reasons that Python
  63. is the number one first language for computer science students.
  64. This is across universities in the United States.
  65. This is also true generally throughout the world.
  66. If you look at people learning computer science,
  67. these days they’re learning on Python.
  68. And then they move away from there
  69. because all the major concepts can be taught in Python
  70. without all the headaches.
  71. It’s beautiful.
  72.  
  73. Why do expert developers choose Python as their preferred
  74. language?
  75. You might think this simple language,
  76. easy to get started language that’s
  77. great for beginners is not going to be that great for experts.
  78. You’ll outgrow Python.
  79. And that’s one of the magical bits of Python
  80. is typically you don’t outgrow it.
  81. You just bring in these richer and richer features
  82. into your application that maybe the beginners didn’t use.
  83. So if you look at some of the major applications that
  84. are out there, they’re built with Python.
  85. We’ve got the question and answer site
  86. Quora, one of the major, major sites around Q&A
  87. on the internet.
  88. We have Dropbox, front-end stuff and back-end stuff.
  89. Even that little icon in your taskbar
  90. or your Notification Center, that’s
  91. Python coming from Dropbox.
  92. And we have YouTube written in Python.
  93. YouTube actually gets several million requests per second.
  94. And it’s totally handled in Python.
  95. So while Python starts small, its ability to grow
  96. is really kind of special.
  97. And this has somewhat to do with the language having a simple
  98. but not simplistic style to it.
  99. You can bring in advanced features,
  100. but you don’t have to.
  101. And the 120,000 packages on PyPI that you can just
  102. go and reference.
  103. It’s also super, super popular in data science,
  104. machine learning, deep learning, a lot of those things,
  105. TensorFlow, Carrera, these are all
  106. using Python in major, major ways.
  107. And on top of this, Python is one of the fastest growing
  108. languages out there.
  109. According to a Stack Overflow sort of analysis
  110. that they did in late 2017, this is
  111. one of the fastest growing major languages by a long, long shot.
  112. And it’s much, much more popular than really shiny new languages
  113. like Go or Rust.
  114. So you can see across the board, Python
  115. is widely used by professional programmers
  116. for applications that require the highest demands like this YouTube example.
  1. What’s so great about Python?
  2. Well, the list is really long and varied.
  3. Let’s start with Python containing
  4. all the different major programming idioms.
  5. So Python is great for building object-oriented applications.
  6. And architecting your application
  7. that way there’s a very rich type hierarchy,
  8. even has multiple inheritance, which may or may
  9. or may not be a good thing.
  10. But you can model things using objects super well in Python.
  11. At the same time, you don’t have to use objects.
  12. Unlike languages like Java and C# where it’s only
  13. object-oriented programming.
  14. And like everything has to be a class.
  15. And you can kind of shoehorn other models.
  16. You could just work in functions.
  17. So there’s procedural style.
  18. It is totally good.
  19. And there’s also a functional style
  20. of programming, which works with things
  21. like immutable data and passing functions
  22. and all of those ideas from the functional programming
  23. languages.
  24. And you even have things like aspect-oriented programming
  25. with things like decorators in Python.
  26. So you can model or work in whatever way suits you.
  1. And Python runs everywhere.
  2. So Python, obviously, runs on the major platforms–
  3. Linux, Mac OS, and Windows–
  4. but it also runs on things as small as Raspberry Pis
  5. or even microchips.
  6. There are special microchips that run a flavor of Python
  7. called MicroPython.
  8. And these are like $5 microchips.
  9. And yet, you can take Python, and it is more or less
  10. the O/S for that little chip.
  11. You can even do wild things like hook function callbacks
  12. up to, say, a hardware interrupt.
  13. How about that?
  14. So in addition to all these programming models,
  15. we have a very simple and easy to learn, easy
  16. to read programming language.