Good afternoon
I'm quite new to Python and I am trying to get the result of a script to show into a html tag - so within my app.py I have the following code;
Then within my index.html I put this;
As you can imagine, this mustn't be right. How can I get it to work ?
I'm quite new to Python and I am trying to get the result of a script to show into a html tag - so within my app.py I have the following code;
1 2 3 4 5 6 7 8 |
file = open ( "blocks.txt" , "r" ) line_count = 0 for line in file : if line ! = "\n" : line_count + = 1 file .close() print (line_count) |
1 |
<b>IP's Blocked: <label>{{line_count}}< / label>< / b> |