I am reading this wsgi document, I can not understand how the response_body is generated.
{
response_body = html % { # Fill the above html template in
'checked-software': ('', 'checked')['software' in hobbies],
'checked-tunning': ('', 'checked')['tunning' in hobbies],
'age': age or 'Empty',
'hobbies': ', '.join(hobbies or ['No Hobbies?'])
}
Can anyone explain the python syntax?
'checked-software': ('', 'checked')['software' in hobbies],