My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
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))
Our fields of expertise
Programming
Math
Engineering
Economics
Physics
LATEST TUTORIALS
APPROVED BY CLIENTS
Thanks for the assistance,,, your service is great
#340795
on Jan 2024
Read all reviews >>