66 861
Assignments Done
99,1%
Successfully Done
In October 2018

Answer to Question #64956 in Python for Racaku

Question #64956
How to check if list object has None element?
Expert's answer
# -*- coding: utf-8 -*-
"""
How to check if list object has None element?
"""

v=[1, 2, 3]
print(any(item is None for item in v))

v=[1, None, 3]
print(any(item is None for item in v))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions