I'm programming in python for a while. Most often I need to define structures like in C such as
struct Books {
   char  title[50];
   char  author[50];
   char  subject[100];
   int   book_id;
} book;
how can I do it in python.
I'm programming in python for a while. Most often I need to define structures like in C such as
struct Books {
   char  title[50];
   char  author[50];
   char  subject[100];
   int   book_id;
} book;
how can I do it in python.