from textblob import TextBlob # importing textblob library t = 1 while t: a = input("Enter the word to be checked:- ") # incorrect spelling print("original text: "+str(a)) #printing original text b = TextBlob(a) #correcting the text # prints the corrected spelling print("corrected text: "+str(b.correct())) t = int(input("Try Again? 1 : 0 "))