Store comparison in variable (or execute comparison when it's given as an string)
- by BorrajaX
Hello everyone.
I'd like to know if the super-powerful python allows to store a comparison in a variable or, if not, if it's possible calling/executing a comparison when given as an string ("==" or "!=")
I want to allow the users of my program the chance of giving a comparison in an string.
For instance, let's say I have a list of... "products"…