Aug-17-2020, 03:40 AM
Please avoid suggesting the use of
eval
. Obviously it will (try to) evaluate any string as a Python expression and isn't something you should have to use often if at all. For someone learning the language though, using it means they miss out on the important aspects of the exercise - solving the problem and figuring out how to use the language features to implement that solution.