We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330710a commit 2900943Copy full SHA for 2900943
1 file changed
projects/Spell_checker/spell_checker.py
@@ -1,9 +1,12 @@
1
from textblob import TextBlob # importing textblob library
2
3
-a = input("Enter the word to be checked:- ") # incorrect spelling
4
-print("original text: "+str(a)) #printing original text
+t = 1
+while t:
5
+ a = input("Enter the word to be checked:- ") # incorrect spelling
6
+ print("original text: "+str(a)) #printing original text
7
-b = TextBlob(a) #correcting the text
8
+ b = TextBlob(a) #correcting the text
9
-# prints the corrected spelling
-print("corrected text: "+str(b.correct()))
10
+ # prints the corrected spelling
11
+ print("corrected text: "+str(b.correct()))
12
+ t = int(input("Try Again? 1 : 0 "))
0 commit comments