Linux for Beginners: A Practical Guide for Complete Beginners on How to Master and Discover Surprisingly Tips On How to Use Linux Efficiently by Snowden John

Linux for Beginners: A Practical Guide for Complete Beginners on How to Master and Discover Surprisingly Tips On How to Use Linux Efficiently by Snowden John

Author:Snowden, John [Snowden, John]
Language: eng
Format: epub
Published: 2021-01-02T16:00:00+00:00


CHAPTER SIX:

LEARNING PYTHON

C++ is denser of a language than Python, which is made for rapid prototyping and quick, messy scripting. In no way is C++ meant for either of these! However, that means that C++ and Python have many differences that make it a little better to learn C++ first, to be a better programmer.

When you learn C++ first, you’re learning to be mindful of your resource usage. Python takes care of a lot for you. For example, you don’t have to worry about a variable’s value when passing to a function, and you don’t really have to worry that a variable is just going to be a copy of a variable, and you especially don’t have to worry about freeing up memory that you’re using. When you learn C++ first, you learn to be mindful of these things from the get-go. There are ways to be mindful of them in Python simply by following good practices and not being immensely wasteful in the very essence of your code.

Second, when you learn C++ first, you’re learning to be more mindful of what you’re making . You have to explicitly type every function and variable instead of just letting it be implied. This also forces you to bear it in mind as you play around with different variables and start to become a better programmer. When you’re starting, you’ll have to pay attention to the fact that variable c is an int while variable d is a string. You don’t have to worry about this, but it’s good practice to keep things like value types in your head all the time as you’re working on a language.

With all of this said, there are a lot of advantages to learning Python, too. First off, it’s one of the most commonly learned and used programming languages in the world today. This means that there is a huge amount of documentation available to you as a novice Python programmer—and a lot of people who have asked the same questions that you likely will have, which means that there are people who have already given answers out there, too.

More than that, Python is an immaculate and effective language. Many people who have worked with Python have grown to love it, myself included. When you know what you’re doing with programming, working with Python is pretty fun and fast experience. Many of the things that bog you down in other languages fail to exist or have a measurable impact in Python. We’re going through all of the stuff that we covered in the last reading in terms of Python.

If you’re running Linux, you should already have Python, simplifying the whole setup process quite a bit. You can test this out by opening up the Terminal and then typing python and pressing enter. If it launches Python, then you’re all set. If not, you’ll need to go to Python.org and get it, but this really shouldn’t be an issue on Linux distributions.

If it launches as anything other than Python 2.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.