I want to organize all my class object into a single object in python

class  Account:
            def __init__(self, account_name, account_bal = 0):
                self.account_name = account_name
                self.account_balance = account_balance
            def deposit(self, amount):
                self.account_balance += amount

First_account = Account('Adex')
Second_account = Account('Bob')

Now my question is;
How can I put both First_account and Second_account into another single object let’s say All_account




Pls I need help irrespective of the structure of the code.


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).