Demo entry 6838946

Funktion

   

Submitted by Daniel Szczebiot on Jun 12, 2019 at 14:40
Language: Python. Code size: 229 Bytes.

import requests

r=requests.get('https://collector:5000')

app = Flask(__name__)
@app.route('/')
def index():
    numbers_array = r.json()["my_numbers"]
    x=numbers_array[1] + numbers_array[2]
    return '{}'.format(x)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).