25 Nov 2021 Luke Hande An Introduction to Combinatoric Iterators in Python Combinatoric iterators are tools that provide building blocks to make code more efficient. This introduction shows you some of the most useful ones in Python. Counting Things In this article, I would like to provide a brief introduction to combinatoric iterators in Python. Combinatorics in the mathematical sense is about counting things. It can help us count the number of permutations of something (how many possible arrangements of a deck of cards) or the number of combinations (how many unique arrangements of different colored balls). Read more 21 Oct 2021 Luke Hande How to Count Money Exactly in Python Using floats to do exact calculations in Python can be dangerous. Here, we explain why and show you an alternative solution. When you try to find out how much 2.32 x 3 is, Python tells you it's 6.959999999999999. For some calculations, that’s fine. But if you are calculating a transaction involving money, that’s not what you want to see. Sure, you could round it off, but that's a little hacky. Read more «« « 1 2 3 4 5 » »»