If you want to check if all elements of an iterable are strings, use all and instance.
all
instance
The code above shows how to combine these 2 methods.
Link to previous tips on Python list.
Nice
Comments are closed.
1 thought on “all: Check if All Elements of an Interable Are Strings”
Nice
Comments are closed.