Skip to main content

Welcome to Chemistry Programming! This is a space where we explore the intersection of chemistry and programming, providing resources, tutorials, and discussions on how to apply programming techniques to solve chemical problems.

See the last posts below for content updates. You can also search for specific topics using the search bar at the top right corner of the page. Or, if you prefer, you can browse the posts by category or tag using the links in the footer or in the previous text.

Project developed by Francisco Bustamante.

Recent

What is yield from? Python Generators
·1134 words·6 mins
Python Generators Drops
Have you ever seen the term yield from in some Python code and wondered what it was? In this article we will delve even deeper into generators and understand, with examples, what yield from means and how we can use it to make our code even more efficient.
Infinite Sequences in Python - Impressive Fibonacci
·1024 words·5 mins
Python Sequences Drops Fibonacci Itertools Islice
Did you know that you can create an infinite sequence without having memory problems and still consume this sequence in any way you want? Today we will see a specific function of the itertools standard library module, the islice, and see how can it be used to create the Fibonacci infinite sequence in Python.
NASA's Most Expensive Mistakes - Metric vs Imperial Units vs $328M+
·3054 words·15 mins
Science Nasa Metric Units
In this article, we will see how NASA has lost million-dollar projects due to simple unit conversion errors. We will also look at which unit system took man to the Moon in the Apollo Program by analyzing the source code of the onboard computer.
Python Regular Expressions: Mastering RegEx
·3832 words·18 mins
Python String Format Regex Drops
Regular expressions (or, shortly, regex) are a language that detects patterns. You express a pattern that will be applied to strings. It is an efficient way to find patterns and extract information from texts. Within this pattern, each symbol represents a type of information. In this article, we will see the main symbols and their meanings with the help of several examples.
A Guide to Python String Format Techniques
·1610 words·8 mins
Python String Format F-Strings Drops
A significant part of our time is spent dealing with strings, so it is important to know how to present them in the desired way. This is what we will see in this article with several examples.
Polynomial Manipulation with SymPy
·1486 words·7 mins
Python Sympy Math Polynomials
Certainly, one of the most abstract subjects in math classes: polynomials. After all, who has never been confused in a polynomial division, it is x everywhere. In this article, we will see how the SymPy library, for the Python language, helps us to deal with operations involving polynomials.