<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_account_from_name(self, name):
 """ Returns the account with the given name. :type name: string :param name: The name of the account. """

        for account in self.accounts:
            if account.get_name() == name:
                return account
        return None