<reponame>CynthiaOuma12673/password-locker
import random
import string
import pyperclip

class User:
    '''
    It creates the user class that generates new instances of the user
    '''
    user_list = []

    def _init_(self,username,password):
        
        '''
        this method will define all the properties that the user needs to have i.e username and password
        '''
        self.username = username
        self.password = password

    def save_user(self):
        '''
        This method will save the new user to the list of users
        '''
        User.user_list.append(self)
        

    def delete_user(self):
        '''
        it deletes a user who has a saved account
        '''

        User.user_list.remove(self)

import random
import string
import pyperclip

class User:
    '''
    It creates the user class that generates new instances of the user
    '''
    user_list = []

    def _init_(self,username,password):
        
        '''
        this method will define all the properties that the user needs to have i.e username and password
        '''
        self.username = username
        self.password = password

    def save_user(self):
        '''
        This method will save the new user to the list of users
        '''
        User.user_list.append(self)
        

    def delete_user(self):
        '''
        it deletes a user who has a saved account
        '''

        User.user_list.remove(self)
It creates the user class that generates new instances of the user this method will define all the properties that the user needs to have i.e username and password This method will save the new user to the list of users it deletes a user who has a saved account