Definindo uma variável condicional em Python. Usando uma instrução if else em python.

value = 'Test' if 1 == 1 else 'NoTest'
Zany Zebra