Language Selection

English French German Italian Portuguese Spanish

Python Programming

Filed under
Development
  • SDF record walkthrough

    In this essay I'll walk through the major parts of a simple V2000 SDFile record.

    Richard Apodaca summarized the SDfile format a few months ago, with details I won't cover here. You should read it for more background.

    Bear in mind that the variety of names for this format name leads to some confusion. It's often called an SDF file, which technically means structure-data file file, in the same way that PIN number technically means personal identification number number. I tend to write SD file, but the term in the documentation is SDFile.

  • I Want to Learn Programming but I Don’t Know Where to Start

    Software development is a challenging and lucrative career option. Our daily utility items — light bulbs, televisions, cars, banking, shopping — everything is driven by intelligent pieces of codes.

    If you want to learn programming but do not know where to start, you have come to the right blog. I have compiled a step-by-step guide that will get you started on your software development journey and eliminate your apprehensions.

  • Handling the SDF record delimiter

    In this essay I'll point out a common difficulty people have when trying to identify the end of an SDFile record.

  • Stack Abuse: Kernel Density Estimation in Python Using Scikit-Learn

    This article is an introduction to kernel density estimation using Python's machine learning library scikit-learn.

    Kernel density estimation (KDE) is a non-parametric method for estimating the probability density function of a given random variable. It is also referred to by its traditional name, the Parzen-Rosenblatt Window method, after its discoverers.

  • How to Create a Python Hello World Program

    There is a major difference between python 2 and python 3. For instance, one difference is the print statement. In python 2, the print statement is not a function. It is considered as a simple statement. Whenever we use the print statement in python 2, we do not use the parenthesis. On the other hand in python 3, print is a function and it is followed by the parenthesis.

    In any programming language, the simplest “Hello World” program is used to demonstrate the syntax of the programming language. In this article, we create the “Hello World” program in python 3. Spyder3 editor is used to creating and running the python script.

More in Tux Machines

Android Leftovers

The Most Innovative ~$50 Graphics Card For Linux Users

This ~$50 USD graphics card is open-source friendly, can drive four display outputs simultaneously, passively cooled, and can fit in a PCI Express x1 slot. It's a unique card offering good value especially for those Linux users wanting open-source friendly hardware. Earlier this year ASUS announced the GT710-4H-SL-2GD5. In the months since we didn't hear anything more about it given the pandemic but recently saw it became available via Internet retailers and picked one up for testing. Read more

Plasma on the Edge

You probably have heard the news by now that Microsoft have released the Linux version of their new Chromium-based Edge web browser. Of course I’ve been waiting for this day ever since they announced the switcheroo to Chromium in order to bring Plasma Browser Integration to Edge users. It took Microsoft almost two decades to offer another web browser to a Unixoid desktop and this time around it’s based on KDE’s legacy – what a time to be alive! You can already use Plasma Browser Integration just fine with Edge by installing it from the Chrome web store. Until Plasma 5.21 is out, however, it will only see it as yet another Chromium, meaning that KRunner, media controls, and so on might not map to the correct browser window or show only a generic icon. Read more

Python Programming

  • Webinar Recording: “virtualenv – a deep dive” with Bernat Gabor – PyCharm Blog | JetBrains

    PyCharm virtual environments are an important but challenging topic. We recently hosted Bernat Gabor to discuss this, as well as his rewrite of virtualenv, the hugely-popular command-line tool for creating virtual environment. The recording is now available. This was a very engaging webinar, with lots of questions, and many thanks to Bernat for taking the time to give thoughtful replies.

  • Python Morsels: The 2 Types of "Change" in Python

    The word "change" is ambiguous in Python: we have two distinct types of "change" in Python. We can "change" a variable by changing which object that variable is pointing to. We do that through an assignment statement. We can also "change" an actual object through a mutation. Let's take a look at both types of change.

  • Python: Slice Notation on String

    The term slicing in programming usually refers to obtaining a substring, sub-tuple, or sublist from a string, tuple, or list respectively. Python offers an array of straightforward ways to slice not only these three but any iterable. An iterable is, as the name suggests, any object that can be iterated over. In this article, we'll go over everything you need to know about Slicing Strings in Python.

  • R vs Python for Data Analysis — An Objective Comparison

    There are dozens articles out there that compare R vs. Python from a subjective, opinion-based perspective. Both Python and R are great options for data analysis, or any work in the data science field. But if your goal is to figure out which language is right for you, reading the opinion of someone else may not be helpful. One person's "easy" is another person's "hard," and vice versa. In this article, we're going to do something different. We'll take an objective look at how both languages handle everyday data science tasks so that you can look at them side-by-side, and see which one looks better for you. Keep in mind, you don't need to actually understand all of this code to make a judgment here! We'll give you R vs Python code snippets for each task — simply scan through the code and consider which one seems more "readable" to you. Read the explanations, and see if one language holds more appeal than the other.