Jul-31-2020, 06:07 PM
Two directions I can see for you to go. One is to figure out what candidates there are for classes. Making a "password" class seems overkill for that piece of data. You could make a menu class that handles the menu display and all of the activities. Or, more ambitiously, you could make a context manager that allows you to use "with" on your database. That requires you to implement __enter__ and __exit__ functions that would handle all of the opening and closing of the database connection. What are you looking for?