I want to pass a query to my drive where the query checks for a particular folder ID. 

```
q="'1gVe3Mktuo05xaCMAnr4nA6kvEqnEhiUX' in parents and mimeType='application/vnd.google-apps.folder'"

```

I want to make this query dynamic by storing the ID of a folder in a vairable and then appending it to the query. This is what I tried: 

`q= user_id+" in parents and mimeType='application/vnd.google-apps.folder'`"

But this is not working.

This is the code: 

```
user_folder_id = service.files().list(q="name = 'users'",spaces = 'drive').execute()   
    user_folder_details = user_folder_id.get('files', [])
    for i in user_folder_details:
        user_id = i['id']
        type = i['mimeType']

     results = service.files().list(q= user_id+" in parents and mimeType='application/vnd.google-apps.folder'",spaces = 'drive').execute()   
    items = results.get('files', [])

    if not items:
        print('No files found.')
    else:
        print('Files:')
        for item in items:
            print(u'{0} ({1})'.format(item['name'], item['id']))

```