Skip to content

Commit e3483dd

Browse files
committed
update
1 parent ab58374 commit e3483dd

File tree

2 files changed

+26
-0
lines changed
  • ClassExamples/PJ128_AIML6m_Jan21/flask/flask7-embeddingInHtml

2 files changed

+26
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
from flask import *
2+
3+
app = Flask(__name__)
4+
5+
6+
@app.route('/')
7+
def home():
8+
return " Hi Champs of AIML "
9+
10+
@app.route('/table/<int:num>')
11+
def table(num):
12+
return render_template('table.html',n=num)
13+
14+
if __name__ == '__main__':
15+
app.run()
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<html>
2+
<body>
3+
<h2> printing table of {{n}}</h2>
4+
<table border=1>
5+
{% for i in range(1,11): %}
6+
7+
<tr><td>{{n}} <td>x <td>{{i}}<td> =<td> {{n * i}} </tr>
8+
{% endfor %}
9+
</table>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)