Scanning a file character by character
Spacebar265
spacebar265 at gmail.com
Sun Feb 8 22:26:13 EST 2009
On Feb 7, 2:17 am, Jorgen Grahn <grahn+n... at snipabacken.se> wrote:
> On Wed, 4 Feb 2009 22:48:13 -0800 (PST), Spacebar265 <spacebar... at gmail.com> wrote:
> > Hi. Does anyone know how to scan a filecharacterbycharacterand
> > have eachcharacterso I can put it into a variable. I am attempting
> > to make a chatbot and need this to read the saved input to look for
> > spelling mistakes and further analysis of user input.
>
> That does not follow. To analyze a text, the worst possible starting
> point is one variable for eachcharacter(what would you call them --
> character_1, character_2, ... character_65802 ?)
>
> /Jorgen
>
> --
> // Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
> \X/ snipabacken.se> R'lyeh wgah'nagl fhtagn!
How else would you check for spelling mistakes? Because input would be
very unlikely to be lengthy paragraphs I wouldn't even need very many
variables. If anyone could suggest an alternative method this would be
much appreciated.
More information about the Python-list
mailing list