Question: I'm unable to loop through the "query" variable with the items list and push the code to database. but it is throughing an error ""ValueError: not enough values to unpack (expected 2, got 1)"", can someone check the code please?

```
@app.route('/', methods=['POST'])
def test():
    if request.method == 'POST':
        try:
            query = request.form['url']
            r = requests.get(query)
            output = r.json()
            items = output['result']

            # # items = ['abc','bcd','cde','def'] # here items will be in list

            for i in items:
                user = User(listOfItems=items[i], query=query)
                db.session.add(user)
                db.session.commit()

            responseBody = {'message': items}
            return make_response(jsonify(responseBody))
        except Exception, e:
            return ('Oops!', e.__class__, 'occurred.')
    else:
        responseBody = {'message': 'failed'}
        return make_response(jsonify(responseBody))

```

**desired output in database:**

```
listOfItems     query           time_stamp
abc            example.com      -date-
bcd            example.com      -date-
cde            example.com      -date-
def            example.com      -date-
xyz            example1.com      -datetime.now-
yza            example1.com      -datetime.now-
zab            example1.com      -datetime.now-

```

here,
query1: example.com returns ['abc','bcd','cde','def'] list items
query2: example1.com returns ['xyz','yza','zab'] list items

Answer: 
Yes, you can simply percent-encode the `%` symbol. You can put `%25` instead of `%`

So instead of

```
100%-satisfaction-guarantee-icon.png

```

you could refer to it as

```
100%25-satisfaction-guarantee-icon.png

```
A % in a path signifies encoding the URL for the purpose of using special characters (replaces unsafe ASCII characters). I believe this also applies to img tags in HTML.

Check out this wiki link [Percent-encoding](https://en.wikipedia.org/wiki/Percent-encoding) or this W3 resource [HTML Encoding](https://www.w3schools.com/tags/ref_urlencode.asp) for more information.