a guest May 12th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- searching_for = 'abc'
- found = False
- with open('/etc/passwd') as f:
- for line in f:
- username = line.split(':')
- if username == searching_for:
- found = True
- if found == 'True'
- print('not found')
RAW Paste Data