I want to limit a number onto a specific range in Python, I will be updating this number through the code constantly so I would prefer it to be a class or something that i can just reuse or call.
When I say limit in a range I mean that number can't be higher than 100 or lower than 0 for example.
I am pretty new to programming and python and i would appreciate if you could explain to me your solutions please.
Thanks.