detction of set of alphabets then print assigned value | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

detction of set of alphabets then print assigned value

hello fellow coders, i want to make programme that can detect one or more than one word/s from the sentence or paragraph and if word/s is/are detected then i want to print specific value/s assigned to word/s i have googled so much but no good results so help me please ............. thank you guys in advance

6th Oct 2017, 9:32 AM
viraj SHAH
viraj SHAH - avatar
6 Respostas
+ 1
hi, look my rb code below. i think that's help you. https://code.sololearn.com/cd7RVwJndrpr/?ref=app all words of the poem are listed and the result returns the 5 first word most used in this poem
6th Oct 2017, 11:05 AM
MBZH31
MBZH31 - avatar
+ 1
click to the link
16th Oct 2017, 6:09 AM
MBZH31
MBZH31 - avatar
+ 1
@WISE $ explain your post, I don't understood
5th Feb 2018, 6:30 AM
MBZH31
MBZH31 - avatar
0
if you use input for the text and the wanted words in "if... IN..", I guess it should work.
6th Oct 2017, 9:08 AM
Lucas Lima Da Silva
Lucas Lima Da Silva - avatar
0
problem 1:- i have used 'in'... but how can i use it in way so that it can detect more than one word. problem 2:- let me give you example..... my two words :- viraj, name my sentance :- "My name is viraj shah." if name or/and viraj is detected then print A for name and print B for viraj now the problem is that i want order of assigned value to be printed as same as sentance like 'name' is first so print A first then B.
6th Oct 2017, 9:30 AM
viraj SHAH
viraj SHAH - avatar
0
hey man I didn't get a thing šŸ˜µ
16th Oct 2017, 2:09 AM
viraj SHAH
viraj SHAH - avatar