Index: filters/countries_length.py |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/filters/countries_length.py |
@@ -0,0 +1,5 @@ |
+ |
+non_countries = ["earth"]; |
+ |
+def countries_length(people): |
+ return len(({flag for _, flag, _, _, _, _ in people if flag not in non_countries})) |