Похожие чаты

Anyone can help me ? Now we have a database

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?

12 ответов

12 просмотров

What do you mean?

M.Furkan- Автор вопроса
Pedro Aguiar
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?

M.Furkan- Автор вопроса
M.Furkan
yes of course.

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

M.Furkan- Автор вопроса
Alessio
it was not very clear from your question :P btw I'...

sorry my English , can you help me. can you show me how to do it?

M.Furkan
sorry my English , can you help me. can you show m...

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

M.Furkan- Автор вопроса
Alessio
it depends what you need it for. If it's a user fe...

no just i have db file. i want to see this result in terminal

M.Furkan
no just i have db file. i want to see this result ...

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

M.Furkan- Автор вопроса
M.Furkan
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

M.Furkan- Автор вопроса

Похожие вопросы

Обсуждают сегодня

Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
For all those that keep asking why no pump? why this ? and why that...? Please close ur ewt chart and open 2 others - TOTAL (total mc) and BTC.D (btc dominance). Maybe BTC a...
Inn3r_G
19
"Since pnut can flip FTM easily, I'm swapping my FTM to pnut and hoping for a easy x5-x10" Perfect recipe for disaster. NFA but chances are, you'll end up as exit liquidity ...
C. A.
7
AMD status update? No longer in the plan but something might be around the corner later on Chinese partner? No longer in the plan. This market does not seem to be the top ...
Ben
6
I get confused when people talk about the ‘bull market’ and the ‘next bull market’ as if anyone really has a clue what’s really going on in the world. First of all - there i...
Shah
1
Добрый день, подскажите, пожалуйста, по проблеме. Сегодня на работе утром обнаружилось что по рдп подключиться не получается к серверу 2022. В серверную зашел - на системно...
srv
19
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
лучше скажите, причём тут паскаль?
Alexey Kulakov
36
Чтобы перехватить все нажимания буков на форме, надо хук ставить? Пробовал на форме ОнКейДаун, оно ловит клаву если фокус не на компоненте с вводом текста
Serjone
15
Народ! Впервые клиенту пришло письмо от РКН, у вас, дескать, есть яндекс метрика, а нигде не написано, что вы ее юзаете. Никто не сталкивался?
Sasha Beep
14
Карта сайта