Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = []
- b = []
- c = []
- def main():
- print ("MENU")
- while True:
- a.append (input('name:'))
- b.append (input('job:'))
- c.append (input('age:'))
- d = input('leave y/n:')
- if d in ['y','Y']:
- break
- def out():
- print ("OUTPUT")
- d = input('who:')
- try:
- z = a.index(d)
- print ('name: {}'.format (a[z]))
- print ('job: {}'.format (b[z]))
- print ('age: {}'.format (c[z]))
- except:
- print ("This person is not in the list.")
- main()
- out()
Add Comment
Please, Sign In to add comment