sanjay555

Untitled

Sep 12th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. from flask import Flask, render_template
  2.  
  3.  
  4. app = Flask(__name__)
  5.  
  6. @app.route('/')
  7. def index():
  8.     bus_type = ['AC', 'NON-AC']
  9.     bus_info = ['1010', '2020']
  10.     return render_template('index.html', bus=zip(bus_type, bus_info))
  11.  
  12. if __name__ == '__main__':
  13.     app.run(debug=True, port=8888)
Add Comment
Please, Sign In to add comment