Real world applications | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Real world applications

Just curious. What are some real-world concepts of using lists and determine if a word is in the list or not?

18th Mar 2019, 5:01 PM
Chris Ward
Chris Ward - avatar
1 Answer
+ 4
Vocabulary program. You don't want to accidentally add a word that's already in there, so you can check for it. inp = input if inp not in word_list: word_list.append(inp)
18th Mar 2019, 5:34 PM
HonFu
HonFu - avatar