A final function for your constant variables
Project description
Constant
Whenever I think about to make that thing (intenger,float, dataframe , array) constant. it works mostly on all the languages but not in python. So, I decided to create a package for constant numbers like pi and etc. That should be easy. So, here it is.
How to use it!
First install library - pip install constant_nums
after that, from constant_nums import final
basic syntax should be like this only
<constant_name> = final.cons(,<constant_name>)
Now here unit means anything, like int,str,dataframe and array anything. The name of the constant should be same on both the sides. Otherwise it won't be a constant anymore.
Example : pi = final.cons(3.14, "pi") and voila it works.
Now, there is already a module available for some default constants like PI, Euler's number etc but not for custom. You can create your own constants here.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for constant_nums-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b598a807ef2fbf80dfeb32f940a06b912e307e8dc78e4aab90a6d6b0e6a2d26b |
|
MD5 | 6b864aed97a62b72a82bb86e309501b7 |
|
BLAKE2b-256 | 8ea94533dfd50ff5ace349394544fd9e669cbe74469678ebd1745b0565de5623 |