Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask, render_template
- app = Flask(__name__)
- @app.route('/')
- def index():
- bus_type = ['AC', 'NON-AC']
- bus_info = ['1010', '2020']
- return render_template('index.html', bus=zip(bus_type, bus_info))
- if __name__ == '__main__':
- app.run(debug=True, port=8888)
Add Comment
Please, Sign In to add comment