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?
1 Resposta
+ 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)