Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file, first, second, third = [], "", "", ""
- for a in list(open("password.txt")):
- file.append(a.rstrip())
- for b in file:
- index = 0
- for c in b:
- if index == 0:
- first += c
- if index == 1:
- second += c
- if index == 2:
- third += c
- index += 1
- print("First counts:")
- for d in range(10):
- print(d, first.count(str(d)))
- print("Second counts:")
- for e in range(10):
- print(e, second.count(str(e)))
- print("Third counts:")
- for f in range(10):
- print(f, third.count(str(f)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement