Base Numbers System in JavaScript & Python
Outputs a list containing the a series of exponential numbers based on the exponent range e.g. 2⁰ = 1, 2¹ = 2, 2² = 4, etc.
The Python version of the program uses underscore_numbers=True
parameter of the https://docs.python.org/3/library/pprint.html standard module to output list of numbers with underscore (_
) symbol to denote a thousands separator. The use of the above parameter requires Python 3.10.
In order to use the @dataclass
decorator in the ConstantNamespace
class in the Python version of the program, Python 3.7 is required: dataclasses — Data Classes