Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Created on Jan 8, 2018
- @author: Chris
- '''
- from pip._vendor.distlib.compat import raw_input
- ##########################
- #
- # created to create
- # custom wordlist
- #
- ##########################
- #!/usr/bin/python3
- special = ['!','@','#','$','%','^','&','*','(',')','-','_',
- '=','+','[','{',']','}','\\','|',';',':','\'','"',
- ',','<','.','>','/','?','`','~']
- numbers = ['1','2','3','4','5','6','7','8','9','0']
- def main():
- userInput = raw_input('Enter the word to customize: ')
- word = list(userInput)
- print (word)
- upper(word)
- lower(word)
- special(word)
- print(word)
- custom = ''.join(word)
- print (custom)
- def upper(letter):
- for i in letter:
- i = i.upper()
- print(i)
- def lower(letter):
- for i in letter:
- i = i.lower()
- print(i)
- def special(letter):
- special = ['!','@','#','$','%','^','&','*','(',')','-','_',
- '=','+','[','{',']','}','\\','|',';',':','\'','"',
- ',','<','.','>','/','?','`','~']
- for i in letter:
- i = special[0:]
- print (i)
- if __name__ == "__main__":
- main()
Add Comment
Please, Sign In to add comment