Member-only story
Python: A Guide to Numbers
Numbers in Python explained — going beyond the beginner tutorial!
Read on to discover some not so well known functions and methods that can be used with numbers in Python — YES, numbers actually have their own methods !!
Having spent the last few months exploring the world of beginner’s Python tutorials on various well known teaching / learning websites, I have become very familiar with the standard format they all seem to follow…
- Background into the Python programming language
- Instructions on how to install Python (normally totally inadequate — see my article : “How to create a clean learning environment with Pyenv, Pyenv-Virtualenv & PIPX”)
- The customary rendering of “Hello World” for the first time
- Explanation of basic data types: strings, booleans, lists, numbers, etc…
So let’s pause here and talk about numbers in a bit more detail!
My experience has been that nearly all tutorials cover the same basic topics when they explain what numbers are in Python. The focus is primarily on explaining the three classes that make up the different types of numbers and then explaining a series of arithmetic operators that can be used with numbers to perform certain mathematical…









