Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def bullshit(word, decode_list):
- count=0
- word=word.lower()
- for letter in word:
- if(not letter.isspace()):
- count=count+decode_list.index(letter)
- return count
- def main():
- decode_list=['','a','b','c','d','e','f','g','h',
- 'i','j','k','l','m','n','o','p','q',
- 'r','s','t','u','v','w','x','y','z']
- #word=raw_input("Enter your word:-")
- wordlist='fucking lame ,brainless , dizzy, featherbrained, frivolous, giddy, harebrained, ignorant, illiterate, inane, know-nothing, silly, skittish, stupid, uneducated, unschooled, untaught, vacant, vacuous'
- wordlist=wordlist.split(',')
- for word in wordlist:
- word=word.replace('-','')
- number=bullshit(word,decode_list)
- print "Bullshit meter for", word, "is: ", number
- if __name__=='__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement