0

Find word by last character

What's code for search word/vocabulary with last character. However, we use API dictionary? Please

3rd Jun 2019, 5:04 PM
Marhaen
Marhaen - avatar
3 ответов
+ 3
kuman, you know that we don’t write code from scratch. It is a common practice that you try your best and then show us your attempt. Even if the code is buggy or whatever problem he has - this does not matter. We will support you then. Just a rough idea: Try to find out if you can use built-in functions. If yes there is one function working with strings named endswith(). If you are not allowed to use this function iteration on the string with all your words is a good way.
4th Jun 2019, 5:54 PM
Lothar
Lothar - avatar
+ 2
Can you please give us a short example that we can understand clearly what you want to achieve?
3rd Jun 2019, 5:14 PM
Lothar
Lothar - avatar
0
Example: I have 10 words. They are: Anna Beta Alfa Good Excellent Six Penta Kenya Blue Then i want to get words which last character is 'a'. So the result is; Anna, beta, alfa, penta, kenya. What's code ?
4th Jun 2019, 5:13 PM
Marhaen
Marhaen - avatar