Jan-15-2018, 03:19 PM
Gribouillis already showed one way, using globals(). Other option is using vars(). If we go OOP, there are other options too
In any case I doubt OP restrictions on using dict, more over they don't provide the full code. Also, that is why we usually request to post the full homework assignment.
In any case I doubt OP restrictions on using dict, more over they don't provide the full code. Also, that is why we usually request to post the full homework assignment.