for key, name in [(\'check1\', \'one\'), (\'check2\', \'two\'), (\'check3\', \'three\')]: if request.args.get(key): ausgabe.append(name) <
for key, name in [(\'check1\', \'one\'), (\'check2\', \'two\'), (\'check3\', \'three\')]: if request.args.get(key): ausgabe.append(name)