R
R
Roman Roman2020-05-08 15:50:08
Python
Roman Roman, 2020-05-08 15:50:08

How to make it possible to find the word is in the list?

hello how do i do
  if == mylist:
Dyakuyu.I'm new

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-05-08
@Romanvd0412

my_list = ['Есть','Нет','Привет']

if 'Есть' in my_list:
  print('Слово Есть есть в списке!')
else:
  print('Слова Есть нет в списке!')

Dyakuyu. I'm new
- Beginners should read books.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question