import datetime

# user class implementation
class User:
    # initialise user
    def __init__(self, name, password, location):
        self.name = name
        self.password = password
        self.location = location
        self.signupdate = datetime.datetime.now().date()

    # the user can change their password and location
    def update(self, password, location):
        self.password = password
        self.location = location

    # login method for user
    def login(self, password):
        # if the password is correct the user gets a welcome message
        if password == self.password:
            print("Welcome, You have logged in successfully!!")
        else:
            print("Incorrect Password!!")

    # User gets a goodbye message
    def logout(self):
        print("Good bye!!")


# main function to test user class
def main():
    # create User
    user = User("Ashton", "35653565", "Miami, Fl")

    # login for the user
    user.login("304079")  # Incorrect Password
    user.login("35653565")  # correct Password

    # change Password and location
    user.update("3132", "Canada")

    # login again
    user.login("3132")

    # logout
    user.logout()





d664bfb0c3850432ec98ab33fa3c22cbdd1171b9
<mask token>


class User:
    <mask token>

    def update(self, password, location):
        self.password = password
        self.location = location

    def login(self, password):
        if password == self.password:
            print('Welcome, You have logged in successfully!!')
        else:
            print('Incorrect Password!!')

    def logout(self):
        print('Good bye!!')


<mask token>

<mask token>


class User:

    def __init__(self, name, password, location):
        self.name = name
        self.password = password
        self.location = location
        self.signupdate = datetime.datetime.now().date()

    def update(self, password, location):
        self.password = password
        self.location = location

    def login(self, password):
        if password == self.password:
            print('Welcome, You have logged in successfully!!')
        else:
            print('Incorrect Password!!')

    def logout(self):
        print('Good bye!!')


<mask token>

<mask token>


class User:

    def __init__(self, name, password, location):
        self.name = name
        self.password = password
        self.location = location
        self.signupdate = datetime.datetime.now().date()

    def update(self, password, location):
        self.password = password
        self.location = location

    def login(self, password):
        if password == self.password:
            print('Welcome, You have logged in successfully!!')
        else:
            print('Incorrect Password!!')

    def logout(self):
        print('Good bye!!')


def main():
    user = User('Ashton', '35653565', 'Miami, Fl')
    user.login('304079')
    user.login('35653565')
    user.update('3132', 'Canada')
    user.login('3132')
    user.logout()

import datetime


class User:

    def __init__(self, name, password, location):
        self.name = name
        self.password = password
        self.location = location
        self.signupdate = datetime.datetime.now().date()

    def update(self, password, location):
        self.password = password
        self.location = location

    def login(self, password):
        if password == self.password:
            print('Welcome, You have logged in successfully!!')
        else:
            print('Incorrect Password!!')

    def logout(self):
        print('Good bye!!')


def main():
    user = User('Ashton', '35653565', 'Miami, Fl')
    user.login('304079')
    user.login('35653565')
    user.update('3132', 'Canada')
    user.login('3132')
    user.logout()

import datetime

# user class implementation
class User:
    # initialise user
    def __init__(self, name, password, location):
        self.name = name
        self.password = password
        self.location = location
        self.signupdate = datetime.datetime.now().date()

    # the user can change their password and location
    def update(self, password, location):
        self.password = password
        self.location = location

    # login method for user
    def login(self, password):
        # if the password is correct the user gets a welcome message
        if password == self.password:
            print("Welcome, You have logged in successfully!!")
        else:
            print("Incorrect Password!!")

    # User gets a goodbye message
    def logout(self):
        print("Good bye!!")


# main function to test user class
def main():
    # create User
    user = User("Ashton", "35653565", "Miami, Fl")

    # login for the user
    user.login("304079")  # Incorrect Password
    user.login("35653565")  # correct Password

    # change Password and location
    user.update("3132", "Canada")

    # login again
    user.login("3132")

    # logout
    user.logout()




