What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-27 11:11:01
python search text corrector
#pip install pyspellchecker from spellchecker import SpellChecker spell = SpellChecker() # find those words that may be misspelled misspelled = spell.unknown(['something', 'is', 'hapenning', 'here']) for word in misspelled: # Get the one `most like... Add solution -
Other 2021-08-27 10:35:02
First Code
print("Hello world, This is yuvraj....") Add solution -
Python 2021-08-27 09:55:01
python convert a dict to list or a list to dict or a slice a dict or sort a dict by key or value without import
#convert dict to list or list to dict or slice a dict #1. convert dict to list temp = [] # not required as [] is mentioned below s = {'b': 3, 'a': 2, 'c': 2, 'd': 1, 'e': 1}#our dict remember temp = [[k,v]for k,v in s.items()]# temp is now list print(temp... Add solution -
Python 2021-08-27 09:17:02
check boolean python
a = True # dont forget capital T and F, it is case sensitive b = False if b == True: print("b is true") if b: print("b is true") # this is the shorthand of the above IF statement if b == False: print("b is false")... Add solution