Python Programming - Lists - Discussion
Discussion Forum : Lists - General Questions (Q.No. 44)
44.
How can you check if a list contains only numeric elements in Python?
Answer: Option
Explanation:
Using
all()
with isinstance()
checks if all elements in the list are of type int.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers