Guest User

Untitled

a guest
Jan 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. '''
  2. Created on Jan 8, 2018
  3.  
  4. @author: Chris
  5. '''
  6. from pip._vendor.distlib.compat import raw_input
  7.  
  8. ##########################
  9. #
  10. # created to create
  11. # custom wordlist
  12. #
  13. ##########################
  14.  
  15. #!/usr/bin/python3
  16.  
  17. special = ['!','@','#','$','%','^','&','*','(',')','-','_',
  18. '=','+','[','{',']','}','\\','|',';',':','\'','"',
  19. ',','<','.','>','/','?','`','~']
  20. numbers = ['1','2','3','4','5','6','7','8','9','0']
  21.  
  22.  
  23. def main():
  24.  
  25. userInput = raw_input('Enter the word to customize: ')
  26. word = list(userInput)
  27.  
  28. print (word)
  29.  
  30. upper(word)
  31. lower(word)
  32. special(word)
  33.  
  34. print(word)
  35.  
  36. custom = ''.join(word)
  37. print (custom)
  38.  
  39. def upper(letter):
  40. for i in letter:
  41. i = i.upper()
  42. print(i)
  43.  
  44. def lower(letter):
  45. for i in letter:
  46. i = i.lower()
  47. print(i)
  48.  
  49. def special(letter):
  50. special = ['!','@','#','$','%','^','&','*','(',')','-','_',
  51. '=','+','[','{',']','}','\\','|',';',':','\'','"',
  52. ',','<','.','>','/','?','`','~']
  53. for i in letter:
  54. i = special[0:]
  55. print (i)
  56.  
  57. if __name__ == "__main__":
  58. main()
Add Comment
Please, Sign In to add comment