this
a, b, c = (5, 6, 7) if cond1 == 2 and cond2 == 3
or this
a, b, c = (5, 6, 7) if cond1 == 2 and cond2 == 3 else (None, None, None)
I think it will do the job.