H
H
HEnl2020-06-16 12:49:54
Python
HEnl, 2020-06-16 12:49:54

How to check if there is at least 1 empty element (string) in a list python?

How to check if there is at least 1 empty element (string) in a list python?
Well, let's say you need to check the list, and if there is an element ' '
that is empty, then report it.
Can this be checked in a boolean context?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
latush, 2020-06-16
@markbrutx

if '' in spisok:
  pass

K
Klein Maximus, 2014-08-16
@verng95

Do you remember the array syntax?
Or describe the conversion procedure?

N
Nazar Mokrinsky, 2014-08-16
@nazarpc

Go through the cycle, then for the question? ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question