Use a variable to name a class in python -


suppose want following psuedocode work

method generateclass(string name, <string,type>[] attributes)        class name()              //used int               //          char b              attributes[0].[0] attributes[0].[1]              attributes[1].[0] attributes[1].[1] 

how in python?


Comments