<filename>user.py<gh_stars>0
class User:
    """
    Class that generates new instances of users
    """

    user_list = []

    def __init__(self, first_name, last_name, username):

        self.first_name = first_name
        self.last_name = last_name
        self.username = username

    def save_user(self):
        '''
        save_user method that saves users into the user_list
        '''

        User.user_list.append(self)

    def delete_user(self):
        '''
        delete method for deleting user_list
        '''

        User.user_list.remove(self)







    @classmethod
    def view_users(cls):
        '''
        method to view users list
        '''

        return cls.user_list


<filename>user.py<gh_stars>0
class User:
    """
    Class that generates new instances of users
    """

    user_list = []

    def __init__(self, first_name, last_name, username):

        self.first_name = first_name
        self.last_name = last_name
        self.username = username

    def save_user(self):
        '''
        save_user method that saves users into the user_list
        '''

        User.user_list.append(self)

    def delete_user(self):
        '''
        delete method for deleting user_list
        '''

        User.user_list.remove(self)







    @classmethod
    def view_users(cls):
        '''
        method to view users list
        '''

        return cls.user_list


Class that generates new instances of users save_user method that saves users into the user_list delete method for deleting user_list method to view users list