~~~
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
data = {}
colours = ["red", "green", "blue"]
for i in range(0, len(colours)):
data[i] = colours[i]
return data
if __name__ == '__main__':
app.run()
~~~