I am currently learning Python and my idea would be to convert an existing Excel project into a web application.
As part of the configuration required in the project the user requires licenses for certain features. Example, if there are a total of 17 users that require a feature, the licenses are available for 1 user, 5 users, 10 users, 20 users.
So to cater for the 17 users above I would require: 2 x 1 user 1 x 5 user 1 x 10 user
The configuration consists of over 400 different licenses.
Achieving the above is possible using IF, ELIF and ELSE and returning the remainder and then looping all over again until the remainder is 0.
I am sure there would be a more productive way to go about the above.
Any advise or how to go about wording this better in a search to do more research?
Your assistance is appreciated.