

("Nigeria", "160,470,000,000 mᶟ", "216 liter.p.capital", "216,139,589"), The Syntax of the filter() function: filter(fn, list) Where: fn: The function that tests if each element of a sequence true or not. Thank you.ĬountryTables = ("Country", "Yearly Water Use", "Daily Water Use", "Population M") I know there's a method to do it via JSON, but as far as I know, I haven't been able to get it done. Python has a built-in function called filter () that allows you to filter a list. Third, show the filtered list to the screen. If the element is greater than or equal to 70, add it to the filtered list. Second, iterate over the elements of the scores list. See an example of some country lists in data fields, but the intention is to have more in it, it is very useful to place them in a separate file and recall them to the python search page then send them to Html table via render template function. First, define an empty list ( filtered) that will hold the elements from the scores list. I would like to put the data from the data list in a separate file and then get it back to python and then send it to the Html table with the existing jinja syntax and not change anything in the render template function.

I created a country list on the python search page section, the data is sent to the Html table with jinja syntax “ The Html table also has a JavaScript function it functions correctly no help with that needed”.
