with English words in it. here we have to make a guess
Our word is: Apple.
What do I need to write a program that can calculate the percentage of occurrence of the letter "A" when I write the letter "P" and then the letter "P", "L" and "E" again?
What do you mean?
In short, word prediction app. with the words in the database
Do you mean that you want to get the most likely words that can follow after "A" has been typed? And then after "Ap" has been typed and so on?
it was not very clear from your question :P btw I'm pretty sure there are index libraries that can help you with this issue, without having to write it on your own
sorry my English , can you help me. can you show me how to do it?
it depends what you need it for. If it's a user feature why do you need python? I mean, if it's on a frontend, you probably want to look for a javascript solution (if we're talking about web stuff) and/or possibly an sql (if your database is sql) solution
no just i have db file. i want to see this result in terminal
First you have to get the typed letters, you can't use input but you need a thirdy part library like curses When you're ready to get the typed letters once per time, you can create a simple query to the database This things are simpler using GUI or browsers
How can I do it easy using GUI
Each toolkit behaves differently First get if tkinter allows you to get the pressed keys for the entries
doesn't matter tkinter or pyqt
Обсуждают сегодня