Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import string
  2.  
  3. keyPad = ['','','abc','def','ghi','jkl','mno','pqrs','tuv','wxyz']
  4. myFile = open("phoneNumbers.txt","rU")
  5.  
  6. for pos, var in enumerate(keyPad):
  7.     for line in myFile:
  8.         line = line.lower()
  9.         for char in line:
  10.             if char in string.ascii_lowercase:
  11.                 #line.replace(char, pos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement