simran19 commited on
Commit
eec8d73
·
verified ·
1 Parent(s): 9c7a43b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,10 +1,14 @@
1
- from flask import Flask
2
  app=Flask(__name__)
3
 
4
  @app.route('/')
5
  def home():
6
  return "HELLO WORLD"
7
 
 
 
 
 
8
 
9
  if __name__=="main": #calling main driver function
10
  app.run(debug=True, host='0.0.0.0', port=7860)
 
1
+ from flask import *
2
  app=Flask(__name__)
3
 
4
  @app.route('/')
5
  def home():
6
  return "HELLO WORLD"
7
 
8
+ @app.route('/table/<int:num>')
9
+ def table(num):
10
+ return render_template('table.html',n=num)
11
+
12
 
13
  if __name__=="main": #calling main driver function
14
  app.run(debug=True, host='0.0.0.0', port=7860)