is login a class in python

Solutions on MaxInterview for is login a class in python by the best coders in the world

showing results for - "is login a class in python"
Lisa
12 Jun 2020
1    def Login(self):
2    while True:
3        username = raw_input('\nPlease log in by providing your user credentials \nUser Name :')
4
5        if (username == users[0]['username'] or username == users[1]['username']):
6            password = raw_input('Password : ')
7            if (password == users[0]['password'] or password == users[1]['password']):
8                print('Successfully logged in!')
9                print (
10                'Welcome,' + username + '! Please choose of the following options by entering the corresponding menu number.')
11                global LoggedUserName
12                LoggedUserName = username;
13                return True;
14                break;
15            else:
16                print('Your password is not correct. Please try again!')
17        else:
18            print ('Your username is not correct. Please try again!')
19
Selyan
01 Nov 2017
1class User:
2
3def __init__(self,username,password,basket):
4    self.username=username
5    self.password=password
6    self.basket=basket
7