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