Check a user name and PIN code,checkpin,database = [
Check a user name and PIN code,checkpin,database = [
database = [ ['A', '1234'], ['B', '4242'], ['C', '7524'], ['D', '9843']]username = raw_input('User name: ')pin = raw_input('PIN code: ')if [username, pin] in database: print 'Access granted'
- Using the break statement in a for structure.,statemen
- Dictionary key membership test alternative,,d2 = {'spa
- Change .py files to use 4-space indents.,.pyindents,''
- Join a list,joinlist,li = ['a', '
- String formatting: Float, Default Float and Default expo
- Sampling without replacement,,import rando
热门文章:
相关内容
- Using the break statement in a for structure.,statementstructure,fo
- Dictionary key membership test alternative,,d2 = {'spam'
- Change .py files to use 4-space indents.,.pyindents,'''PYTHON SO
- Join a list,joinlist,li = ['a', '
- String formatting: Float, Default Float and Default exponential,,fl
- Sampling without replacement,,import rando
- Functional Programming Tools: reduce 2,functionalreduce,# If there'
- Replace tabs with spaces in argument files,tabsargument,'''PYTHON S
- Nested if demo,nestedifdemo,name = raw_i
- String formatting,stringformatting,num = 1 / 3.
评论关闭