Check a user name and PIN code : Member in : List PYTHON TUTORIALS


PYTHON TUTORIALS » List » Member in »

 

Check a user name and PIN code


database = [
    ['a',  '1234'],
    ['b',  '4242'],
    ['c',  '7524'],
    ['d',  '9843']
]

username = 'albert'
pin = '1234'

if [username, pinin database: print 'Access granted'



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo List
» Member in